From 768fd6f4395cbdb3b7729a2782d9ae06e897b18a Mon Sep 17 00:00:00 2001 From: Maurice Date: Wed, 11 Nov 2026 20:41:24 +0000 Subject: [PATCH] fix(mobile): a plugin's page in the phone shell sits below the status bar and above the dock The page took 100vh with no top inset inside the touch shell, so the plugin's header ran under the status bar and the frame reached past the screen and under the dock. It now takes the visible height (100dvh) less the dock, after the safe area and the rail, and the plugin's own document scrolls. TestFlight feedback, 5.1.3 (Trip Importer). --- client/src/mobile/mobile.css | 9 +++++++++ client/src/pages/PluginPage.tsx | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/client/src/mobile/mobile.css b/client/src/mobile/mobile.css index a98d481f8..706ba0a00 100644 --- a/client/src/mobile/mobile.css +++ b/client/src/mobile/mobile.css @@ -664,6 +664,15 @@ html:has(.m-shell) { html:has(.m-shell) [data-desktop-navbar] { display: none; } +/* A plugin's page inside the touch shell: below the status bar, above the dock, + after the rail, and exactly the visible height (100dvh), so the plugin's own + document is what scrolls instead of the app stretching past the screen. */ +html:has(.m-shell) [data-plugin-page] { + --plugin-page-h: calc(100dvh - var(--bottom-nav-h, 0px)); + box-sizing: border-box; + padding-top: env(safe-area-inset-top, 0px); + padding-inline-start: var(--m-rail-w, 0px); +} html:has(.m-shell) .leaflet-control-zoom { display: none !important; } diff --git a/client/src/pages/PluginPage.tsx b/client/src/pages/PluginPage.tsx index fa68c5aaa..bb45e1f6d 100644 --- a/client/src/pages/PluginPage.tsx +++ b/client/src/pages/PluginPage.tsx @@ -28,7 +28,8 @@ export default function PluginPage(): React.ReactElement { return ( -
+ {/* The phone shell sets --plugin-page-h and its own insets (mobile.css). */} +