@@ -464,10 +464,10 @@ export function ReportProvenance({ uri }: { uri: string }) {
464464// --- sparkline --------------------------------------------------------------
465465
466466/** The fixed sparkline column. Keeps every sparkline aligned. */
467- const SPARK_WIDTH_CLASS = "w-[6 .5rem]" ;
467+ const SPARK_WIDTH_CLASS = "w-[5 .5rem]" ;
468468
469469/** The chart's own width; the trailing peak label uses the column's remainder. */
470- const SPARK_WIDTH = 72 ;
470+ const SPARK_WIDTH = 56 ;
471471
472472type ReportSparkDatum = { count : number ; date : Date | null ; hot : boolean } ;
473473
@@ -570,18 +570,18 @@ export function ReportSparkline({
570570 * chart start on the same vertical whatever the value's width.
571571 */
572572/**
573- * Below a 22rem container the fixed tracks no longer fit beside the value, so the
573+ * Below a 19rem container the fixed tracks no longer fit beside the value, so the
574574 * sparkline drops to its own line. The columns never change, so the value, delta
575575 * and note stay on the same verticals at every panel width.
576576 */
577577const METRIC_ROW_CLASS =
578- "grid grid-cols-[7rem_minmax (0,1fr)_2.75rem_6 .5rem] items-center gap-x-2 @max-[22rem ]:grid-cols-[7rem_minmax (0,1fr)_2.75rem] @max-[22rem ]:gap-y-1.5" ;
578+ "grid grid-cols-[6rem_minmax (0,1fr)_2.75rem_5 .5rem] items-center gap-x-2 @max-[19rem ]:grid-cols-[6rem_minmax (0,1fr)_2.75rem] @max-[19rem ]:gap-y-1.5" ;
579579
580580/** The sparkline cell: its own full-width line once the row goes narrow. */
581- const SPARK_CELL_CLASS = "@max-[22rem ]:col-span-3 @max-[22rem ]:justify-self-end" ;
581+ const SPARK_CELL_CLASS = "@max-[19rem ]:col-span-3 @max-[19rem ]:justify-self-end" ;
582582
583- // Labels are never truncated: the column is sized for the longest one and
584- // anything longer wraps.
583+ // Labels are never truncated: the column fits the common ones and anything
584+ // longer wraps.
585585const LABEL_CLASS = "text-xs uppercase leading-tight tracking-wide text-text-dimmed" ;
586586
587587/** A metric's movement against its baseline. Direction is always an arrow. */
@@ -674,7 +674,7 @@ export function ReportMetricRow({
674674 ) : (
675675 // Keeps the column occupied so a series-less metric doesn't pull the
676676 // rows out of alignment.
677- < span aria-hidden className = "@max-[22rem ]:hidden" />
677+ < span aria-hidden className = "@max-[19rem ]:hidden" />
678678 ) }
679679 </ li >
680680
@@ -683,7 +683,7 @@ export function ReportMetricRow({
683683 // vertical as every other row's value.
684684 < li key = { sub . label } className = { METRIC_ROW_CLASS } >
685685 { /* Indented under the parent label, shallow enough to stay inside the
686- 7rem label column. */ }
686+ 6rem label column. */ }
687687 < span className = { cn ( LABEL_CLASS , "pl-6" ) } > { sub . label } </ span >
688688 < span className = "whitespace-nowrap text-sm tabular-nums text-text-dimmed" >
689689 { sub . value }
0 commit comments