Skip to content

Commit b4d34be

Browse files
fix: reduce bottom row height by ~50%
Cap chart min-height to 250px and limit bottom row to 50vh max on desktop so the chart and heatmap don't dominate the viewport.
1 parent ac7ff43 commit b4d34be

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/web/src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default function Home() {
2323
<CacheEfficiency />
2424
<MonthlyAchievements className="col-span-2 sm:col-span-1 md:col-span-1" />
2525
</div>
26-
<div className="grid grid-cols-1 gap-2 sm:gap-3 md:grid-cols-[1fr_auto] md:gap-4 md:min-h-0 md:flex-1 [&>*]:md:min-h-0">
26+
<div className="grid grid-cols-1 gap-2 sm:gap-3 md:grid-cols-[1fr_auto] md:gap-4 md:min-h-0 md:flex-1 md:max-h-[50vh] [&>*]:md:min-h-0">
2727
<UsageChart />
2828
<HeatmapCalendar className="md:overflow-y-auto" />
2929
</div>

apps/web/src/components/dashboard/usage-chart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function UsageChart() {
5151
);
5252

5353
return (
54-
<Card className="flex min-h-[300px] flex-col">
54+
<Card className="flex min-h-[250px] flex-col">
5555
<CardHeader className="pb-2">
5656
<div className="flex flex-wrap items-center gap-x-3 gap-y-1">
5757
<CardTitle>Usage Trend</CardTitle>

0 commit comments

Comments
 (0)