From 24a83b7019cd424b27ad95f1d056581096a1e5b9 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 10 Nov 2026 19:54:20 +0100 Subject: 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 --- static/dashboard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'static/dashboard.js') 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 = `${esc(p.model ? short(p.model) : "—")}`; if (!(p.cost > 0)) { // local or free models: tokens, not dollars - return `

${esc(title)}

${model} + return `

${esc(title)}

${model} session${tok(p.session_tokens)} total${tok(p.tokens)}
`; } -- cgit v1.2.3