diff --git a/src/components/charts/health-chart.tsx b/src/components/charts/health-chart.tsx index 2d24b666e..02ebc6515 100644 --- a/src/components/charts/health-chart.tsx +++ b/src/components/charts/health-chart.tsx @@ -1045,7 +1045,15 @@ export function HealthChart({ const containerClass = mini ? "bg-card border-border rounded-md border p-2" : "bg-card border-border rounded-xl border p-4 md:p-6"; - const chartHeightClass = mini ? "h-[140px]" : "h-[240px]"; + // v1.4.27 MB7 / CF-43 — chart height now reads from a CSS variable + // (`--chart-height`) so consumers can override the default per-mount + // without re-styling the component. The `mini` branch keeps the + // 140 px contract; the regular branch defaults to 240 px on mobile + // and 280 px from `md:` upwards (the wider container can absorb a + // taller chart without crowding the tile strip above). + const chartHeightClass = mini + ? "h-[var(--chart-height,140px)]" + : "h-[var(--chart-height,240px)] md:h-[var(--chart-height-md,280px)]"; return (