diff --git a/src/__tests__/pwa-mobile-shell-guard.test.ts b/src/__tests__/pwa-mobile-shell-guard.test.ts index ad045d3d8..f68bba020 100644 --- a/src/__tests__/pwa-mobile-shell-guard.test.ts +++ b/src/__tests__/pwa-mobile-shell-guard.test.ts @@ -129,6 +129,16 @@ describe("the shell owns the safe area", () => { expect(bottomClass).not.toMatch(/(? { + // Held sideways a phone keeps the bottom bar, and 90 dvh of a 393 px + // screen is shorter than the hub: the last rows sat below the edge. + const nav = code(read("src/components/layout/bottom-nav.tsx")); + const grid = nav.match(/"grid [^"]*grid-cols-2[^"]*"/)?.[0] ?? ""; + expect(grid).toMatch(/\bmin-h-0\b/); + expect(grid).toMatch(/\boverflow-y-auto\b/); + expect(grid).toMatch(/\boverscroll-contain\b/); + }); + it("the sheet primitives name their side for those rules", () => { expect(read("src/components/ui/sheet.tsx")).toMatch( /data-sheet-side=\{side\}/, diff --git a/src/components/layout/bottom-nav.tsx b/src/components/layout/bottom-nav.tsx index 40e7fa710..0a5d94449 100644 --- a/src/components/layout/bottom-nav.tsx +++ b/src/components/layout/bottom-nav.tsx @@ -287,8 +287,8 @@ export function BottomNav() { little more width on a 320 px phone; the long single-word labels (de "Benachrichtigungen") then have room to break onto a clean second line instead of clipping the last character at the tile - edge. */} -