From 8ef61b02fe44232b2d749c8f34a2a9f1e855e58b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sat, 20 Jun 2026 17:15:35 +0200 Subject: [PATCH] fix(mobile): keep Coach composer above the bottom nav, restore full hub labels Size the full-page Coach surface to clear the mobile BottomNav band plus the iOS safe area so the docked composer and Stop control never sit under the nav; desktop full-bleed height is unchanged (the nav is mobile-only). Stop truncating the More-hub labels: shrink the label type and allow a two-line clamp so long words (German Benachrichtigungen, and the long es/fr/it labels) read in full instead of ellipsising. Raise the lab reading-history edit/delete controls to 44px on touch (compact on desktop), and drop the lab-detail Add button to icon-only on the narrowest phones. --- src/app/coach/page.tsx | 10 +++++++++- src/components/labs/lab-biomarker-detail.tsx | 9 +++++++-- src/components/labs/lab-history-list.tsx | 6 ++++-- src/components/layout/bottom-nav.tsx | 20 +++++++++++--------- 4 files changed, 31 insertions(+), 14 deletions(-) diff --git a/src/app/coach/page.tsx b/src/app/coach/page.tsx index 1fe255a99..bc02ea74a 100644 --- a/src/app/coach/page.tsx +++ b/src/app/coach/page.tsx @@ -69,7 +69,15 @@ export default function CoachPage() { // `` paints directly onto the page so it reads as // one continuous conversation, not a window inside a window. The // separate bottom-right FAB/overlay drawer stays the compact surface. - className="bg-background -mx-4 -mt-6 -mb-20 flex h-[calc(100dvh-4rem)] min-h-[32rem] flex-col overflow-hidden md:-mx-6" + // + // v1.18.10 (W10) — height is mobile-aware. The fixed `` + // (64px + iOS home-indicator inset) is mobile-only; the desktop + // full-bleed layout has no bottom nav. On mobile the page must subtract + // the TopBar (`4rem`) AND the BottomNav band (`4rem` + + // `env(safe-area-inset-bottom)`) so the docked composer / Stop control + // always clears the nav instead of sitting under it. On `md+` the nav + // is hidden, so the page reclaims the full height below the TopBar. + className="bg-background -mx-4 -mt-6 -mb-20 flex h-[calc(100dvh-8rem-env(safe-area-inset-bottom,0px))] min-h-[32rem] flex-col overflow-hidden md:-mx-6 md:h-[calc(100dvh-4rem)]" > diff --git a/src/components/labs/lab-history-list.tsx b/src/components/labs/lab-history-list.tsx index 49fd352bc..599a0321f 100644 --- a/src/components/labs/lab-history-list.tsx +++ b/src/components/labs/lab-history-list.tsx @@ -228,7 +228,9 @@ export function LabHistoryList({ readings }: { readings: LabResultDto[] }) {