mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-15 23:12:04 +00:00
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.
This commit is contained in:
1 parent
1706b67dcf
commit
8ef61b02fe
4 files changed
+31
-14
No files matched your search
@@ -247,16 +247,18 @@ export function BottomNav() {
|
||||
)}
|
||||
>
|
||||
<item.icon className="h-5 w-5 shrink-0" aria-hidden="true" />
|
||||
{/* v1.18.10 (W7) — keep every label on ONE line. The longest
|
||||
single-word label (German "Benachrichtigungen") used to
|
||||
wrap to two lines via `break-words`, which left the tile
|
||||
visually unbalanced beside its single-line neighbours.
|
||||
`min-w-0` lets the flex child shrink below its content
|
||||
width and `truncate` (nowrap + ellipsis) trims the
|
||||
overflow instead of breaking the word. `title` keeps the
|
||||
full label discoverable on hover/long-press. */}
|
||||
{/* v1.18.10 (W10) — show the FULL label, never an ellipsis
|
||||
that hides meaning. The W7 `truncate` clipped long words
|
||||
("Benachrichtigungen" → "Benachrichtigun…"); the goal is a
|
||||
readable label, not a balanced tile. Shrink the type to
|
||||
`text-xs` so long single-word locales (de/es/fr/it) fit on
|
||||
one line at ~110px, and allow a 2-line `line-clamp-2`
|
||||
fallback (with `[overflow-wrap:anywhere]` so a long word
|
||||
breaks rather than overflowing) for the rare label that
|
||||
still cannot fit one line. `min-w-0` lets the flex child
|
||||
shrink below its content width. */}
|
||||
<span
|
||||
className="min-w-0 truncate text-sm leading-tight font-medium"
|
||||
className="line-clamp-2 min-w-0 text-xs leading-tight font-medium [overflow-wrap:anywhere]"
|
||||
title={t(item.tKey)}
|
||||
>
|
||||
{t(item.tKey)}
|
||||
|
||||
Reference in new issue
Block a user