Make right column cards fill height to align with Upcoming card

Wrap TodoWidget in flex-1 container and add h-full to its Card so
the Upcoming Todos card stretches to fill remaining space in the
right column, keeping both columns visually aligned.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Kyle 2026-03-11 23:21:04 +08:00
parent b8bc097f6f
commit 66e230f740
2 changed files with 4 additions and 2 deletions

View File

@ -199,9 +199,11 @@ export default function DashboardPage() {
<CountdownWidget events={data.starred_events} />
)}
<CalendarWidget events={data.todays_events} />
<div className="flex-1">
<TodoWidget todos={data.upcoming_todos} />
</div>
</div>
</div>
{/* Active Reminders — exclude those already shown in alert banner */}
{(() => {

View File

@ -33,7 +33,7 @@ export default function TodoWidget({ todos }: TodoWidgetProps) {
const navigate = useNavigate();
return (
<Card>
<Card className="h-full">
<CardHeader>
<CardTitle className="flex items-center gap-2">
<div className="p-1.5 rounded-md bg-blue-500/10">