From eb1e5ee3feea159bc67e6003ce47c45675dc2811 Mon Sep 17 00:00:00 2001 From: Arnaud Nelissen Date: Mon, 15 Jun 2026 15:46:18 +0200 Subject: [PATCH] fix(ui): lift modal above tab bar, remove duplicate last activities MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Modal container pb = 68px + safe-area-inset-bottom so footer always above the tab bar on mobile (was hidden behind it) - Remove "Dernières activités" from dashboard (duplicates today's feed) - Quick log grid goes full-width, 6 cols on sm+ Co-Authored-By: Claude Sonnet 4.6 --- src/app/(app)/dashboard/page.tsx | 79 ++++++++++---------------------- src/components/event-modal.tsx | 2 +- 2 files changed, 26 insertions(+), 55 deletions(-) diff --git a/src/app/(app)/dashboard/page.tsx b/src/app/(app)/dashboard/page.tsx index 312933f..370ca2d 100644 --- a/src/app/(app)/dashboard/page.tsx +++ b/src/app/(app)/dashboard/page.tsx @@ -372,61 +372,32 @@ export default function DashboardPage() { })} -
- {/* Last events */} -
-

Dernières activités

-
- {(["BREASTFEED", "BOTTLE", "DIAPER_WET", "DIAPER_STOOL", "NAP"] as EventType[]).map((t) => { - const last = lastByType[t]; - const cfg = EVENT_CONFIG[t]; - return ( -
-
- -
-
-
{cfg.label}
- {last && getEventSummary(last) && ( -
{getEventSummary(last)}
- )} -
-
- {last ? formatTimeAgo(new Date(last.startedAt)) : "—"} -
-
- ); - })} -
-
- - {/* Quick log */} -
- {QUICK_LOG_GROUPS.map((group) => ( -
-

{group.label}

-
- {group.types.map((type) => { - const cfg = EVENT_CONFIG[type]; - return ( - - ); - })} -
+ {/* Quick log */} +
+ {QUICK_LOG_GROUPS.map((group) => ( +
+

{group.label}

+
+ {group.types.map((type) => { + const cfg = EVENT_CONFIG[type]; + return ( + + ); + })}
- ))} -
+
+ ))}
{/* Event templates */} diff --git a/src/components/event-modal.tsx b/src/components/event-modal.tsx index ce508a7..4100e7e 100644 --- a/src/components/event-modal.tsx +++ b/src/components/event-modal.tsx @@ -384,7 +384,7 @@ export function EventModal({ type, babyId, onClose, onSaved, initialEvent }: Pro const segmentInactive = "border-slate-200 dark:border-slate-600 text-slate-500 dark:text-slate-400 hover:border-slate-300"; return ( -
+