diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-10 19:54:20 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-10 19:54:20 +0100 |
| commit | 24a83b7019cd424b27ad95f1d056581096a1e5b9 (patch) | |
| tree | 691f50369f0cef5fa2b489440aef133e9b7a5aa6 /static/dashboard.js | |
| parent | c75b6f1ff69d944bb07b9395880a63620a0a8a00 (diff) | |
| download | deck-it-24a83b7019cd424b27ad95f1d056581096a1e5b9.tar.gz deck-it-24a83b7019cd424b27ad95f1d056581096a1e5b9.zip | |
fix(dashboard): chip and spending classes clear of global rules
The global .warn (yellow text) and .row (wrap, margin) rules reached
into the dashboard; its chips use .hot and the one-line spending row
.inline instead.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'static/dashboard.js')
| -rw-r--r-- | static/dashboard.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/static/dashboard.js b/static/dashboard.js index 5479312..5dc8939 100644 --- a/static/dashboard.js +++ b/static/dashboard.js @@ -138,7 +138,7 @@ export default { c.querySelector(".v").textContent = v; if (s != null) c.querySelector(".s").textContent = s; if (fill != null) c.querySelector(".fill").style.width = `${Math.max(0, Math.min(100, fill))}%`; - c.classList.toggle("warn", Boolean(warn)); + c.classList.toggle("hot", Boolean(warn)); }; // A disabled module's parts are left out. @@ -179,7 +179,7 @@ export default { const program = (title, p) => { const model = `<span class="model">${esc(p.model ? short(p.model) : "—")}</span>`; if (!(p.cost > 0)) { // local or free models: tokens, not dollars - return `<div class="prog row"><h3>${esc(title)}</h3>${model} + return `<div class="prog inline"><h3>${esc(title)}</h3>${model} <span class="tok"><span class="lbl">session</span><b class="num">${tok(p.session_tokens)}</b></span> <span class="tok"><span class="lbl">total</span><b class="num">${tok(p.tokens)}</b></span></div>`; } |
