From 99161f1b47007d4aef33a233119ac8fcf0a530bc Mon Sep 17 00:00:00 2001 From: Kyle Pope Date: Wed, 11 Mar 2026 22:15:53 +0800 Subject: [PATCH] Fix Upcoming card height constraint with flex column + maxHeight MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Root cause: h-full on Card inside a flex-col parent with no explicit height meant nothing constrained the card — ScrollArea max-h never triggered overflow. Fix: Card uses maxHeight 520px as the outer cap, flex-col layout with shrink-0 header, and min-h-0 on CardContent + ScrollArea so the flex chain allows content to shrink and scroll. Co-Authored-By: Claude Opus 4.6 --- frontend/src/components/dashboard/UpcomingWidget.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/dashboard/UpcomingWidget.tsx b/frontend/src/components/dashboard/UpcomingWidget.tsx index a60737d..1a9ad86 100644 --- a/frontend/src/components/dashboard/UpcomingWidget.tsx +++ b/frontend/src/components/dashboard/UpcomingWidget.tsx @@ -174,8 +174,8 @@ export default function UpcomingWidget({ items }: UpcomingWidgetProps) { const dayEntries = Array.from(grouped.entries()); return ( - - + +
@@ -210,13 +210,13 @@ export default function UpcomingWidget({ items }: UpcomingWidgetProps) {
- + {filteredCount === 0 ? (

{focusMode ? 'Nothing for today or tomorrow' : 'Nothing upcoming'}

) : ( - +
{dayEntries.map(([dateKey, dayItems], groupIdx) => { const isCollapsed = collapsedDays.has(dateKey);