diff --git a/web/src/lib/components/DayChip.svelte b/web/src/lib/components/DayChip.svelte index 0fe0c18..f1bed3d 100644 --- a/web/src/lib/components/DayChip.svelte +++ b/web/src/lib/components/DayChip.svelte @@ -32,6 +32,8 @@ // Progress bar fill: clamp to [0,1]. Non-workdays have expectedMs=0 → no bar. const progress = $derived(expectedMs > 0 ? Math.min(workedMs / expectedMs, 1) : 0); + const workedLabel = $derived(workedMs > 0 ? formatDurationShort(workedMs) : null); + // Kind icons (emoji-free: text labels used for kind badges) const KIND_ICON: Record = { holiday: 'H', @@ -40,39 +42,56 @@ }; - + +