Skip to content

Commit bf82cce

Browse files
committed
Merge remote-tracking branch 'origin/feat/dashboard-agent-flows' into feat/dashboard-agent-ui
2 parents acf5a14 + 08871bf commit bf82cce

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

apps/webapp/app/components/dashboard-agent/report-sparkline.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -457,10 +457,10 @@ export function ReportProvenance({ uri }: { uri: string }) {
457457
// --- sparkline --------------------------------------------------------------
458458

459459
/** The fixed sparkline column. Keeps every sparkline aligned. */
460-
const SPARK_WIDTH_CLASS = "w-[6.5rem]";
460+
const SPARK_WIDTH_CLASS = "w-[5.5rem]";
461461

462462
/** The chart's own width; the trailing peak label uses the column's remainder. */
463-
const SPARK_WIDTH = 72;
463+
const SPARK_WIDTH = 56;
464464

465465
type ReportSparkDatum = { count: number; date: Date | null; hot: boolean };
466466

@@ -563,18 +563,18 @@ export function ReportSparkline({
563563
* chart start on the same vertical whatever the value's width.
564564
*/
565565
/**
566-
* Below a 22rem container the fixed tracks no longer fit beside the value, so the
566+
* Below a 19rem container the fixed tracks no longer fit beside the value, so the
567567
* sparkline drops to its own line. The columns never change, so the value, delta
568568
* and note stay on the same verticals at every panel width.
569569
*/
570570
const METRIC_ROW_CLASS =
571-
"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";
571+
"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";
572572

573573
/** The sparkline cell: its own full-width line once the row goes narrow. */
574-
const SPARK_CELL_CLASS = "@max-[22rem]:col-span-3 @max-[22rem]:justify-self-end";
574+
const SPARK_CELL_CLASS = "@max-[19rem]:col-span-3 @max-[19rem]:justify-self-end";
575575

576-
// Labels are never truncated: the column is sized for the longest one and
577-
// anything longer wraps.
576+
// Labels are never truncated: the column fits the common ones and anything
577+
// longer wraps.
578578
const LABEL_CLASS = "text-xs uppercase leading-tight tracking-wide text-text-dimmed";
579579

580580
/** A metric's movement against its baseline. Direction is always an arrow. */
@@ -667,7 +667,7 @@ export function ReportMetricRow({
667667
) : (
668668
// Keeps the column occupied so a series-less metric doesn't pull the
669669
// rows out of alignment.
670-
<span aria-hidden className="@max-[22rem]:hidden" />
670+
<span aria-hidden className="@max-[19rem]:hidden" />
671671
)}
672672
</li>
673673

@@ -676,7 +676,7 @@ export function ReportMetricRow({
676676
// vertical as every other row's value.
677677
<li key={sub.label} className={METRIC_ROW_CLASS}>
678678
{/* Indented under the parent label, shallow enough to stay inside the
679-
7rem label column. */}
679+
6rem label column. */}
680680
<span className={cn(LABEL_CLASS, "pl-6")}>{sub.label}</span>
681681
<span className="whitespace-nowrap text-sm tabular-nums text-text-dimmed">
682682
{sub.value}

0 commit comments

Comments
 (0)