From 95374703235987ee7e29fc0ba9e65cfbe549a118 Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Mon, 16 Nov 2026 16:26:33 +0100 Subject: [PATCH] Narrow remaining seconds in the glance Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WzxdWViGJJaqBKGr1Hbppr --- web/src/sections/dashboard.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/sections/dashboard.ts b/web/src/sections/dashboard.ts index 1043586..6e03409 100644 --- a/web/src/sections/dashboard.ts +++ b/web/src/sections/dashboard.ts @@ -124,13 +124,13 @@ export class BudgetGlanceElement extends LiveElement { const body = t ? [ // From 2026-11-16 there is no budget: the mark replaces the countdown and the bar. - t.unlimited || t.fraction_used === null || t.budget_seconds === null + t.unlimited || t.fraction_used === null || t.budget_seconds === null || t.seconds_remaining === null ? h('p', { class: 'hero-num' }, glyph('filter.no-cap', 'No gaming limit')) : [ h( 'p', { class: 'hero-num' }, - `${fmtDuration(t.seconds_remaining ?? 0)} `, + `${fmtDuration(t.seconds_remaining)} `, h('span', { class: 'muted' }, said(`left of ${fmtDuration(t.budget_seconds)}`, `/ ${fmtDuration(t.budget_seconds)}`)), ), progressBar(t.fraction_used, 'Budget used', budgetTone(t.blocked, t.fraction_used)),