diff --git a/web/src/routes/models/+page.svelte b/web/src/routes/models/+page.svelte index 115af43..63ca8ba 100644 --- a/web/src/routes/models/+page.svelte +++ b/web/src/routes/models/+page.svelte @@ -119,6 +119,15 @@ if (n == null || n <= 0) return 'no data'; return n.toFixed(1) + ' t/s'; } + + let copiedId = $state(null); + async function copyId(id: string) { + try { + await navigator.clipboard.writeText(id); + copiedId = id; + setTimeout(() => { if (copiedId === id) copiedId = null; }, 1500); + } catch { /* ignore */ } + }
@@ -185,7 +194,9 @@ {#each sorted as m (m.id)}
- {m.label} + {m.description} {m.license} · {m.tier} @@ -339,11 +350,24 @@ min-width: 0; } .model-label { + background: none; + border: none; + padding: 0; + color: var(--text); + font-family: inherit; font-size: 0.9rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; + cursor: pointer; + text-align: left; + } + .model-label:hover { + color: var(--accent); + text-decoration: underline; + text-decoration-style: dotted; + text-underline-offset: 2px; } .model-desc { font-size: 0.78rem;