mirror of
https://gitcode.com/JianFeeeee/ModelRouter.git
synced 2026-09-20 00:48:00 +00:00
fix(ui): sources page model tags wrap 4 per row (same grid as status page)
This commit is contained in:
@ -1003,7 +1003,7 @@ function removeChatImg(i) { chatImages.splice(i, 1); renderChatImgs(); }
|
||||
async function renderSources() {
|
||||
const j = await api('/api/sources');
|
||||
const rows = j.sources.map(s => `<tr><td><b>${esc(s.name)}</b></td><td>${esc(s.base_url)}</td><td>${esc(s.adapter)}</td>
|
||||
<td>${s.models.map(m => `<span class="tag tag-blue">${esc(m.id)}</span>`).join('')}</td>
|
||||
<td><div class="src-models">${s.models.map(m => `<span class="tag tag-blue">${esc(m.id)}</span>`).join('')}</div></td>
|
||||
<td><button class="ghost small" onclick="editSource(${JSON.stringify(s.name).replace(/"/g,'"')})">${t('srcEdit')}</button>
|
||||
<button class="danger small" onclick="delSource('${escAttr(s.name)}')">${t('srcDel')}</button></td></tr>`).join('');
|
||||
$('#tab-sources').innerHTML = `
|
||||
|
||||
Reference in New Issue
Block a user