fix: toolbar off-screen on iPad Safari with tabs#34
Conversation
On iPad Safari with the tab bar visible, `100vh` extends behind the browser chrome, pushing the fixed-position toolbar out of view. - Add `viewport-fit=cover` to viewport meta tag - Use `100dvh` with `100vh` fallback for body/.app height - Set `--app-height` CSS variable from `visualViewport.height` via JS - Offset fixed toolbar on iOS Safari using the layout/visual viewport delta
|
thanks for the input, I will check tomorrow in detail :-) |
|
I will put this into a draft PR, as I haven't been able to test this thoroughly on other devices. Will do tonight! |
|
I did some tests on my iPad Mini, it still looks like the same as in your screenshots, so lets see how to fix it |
|
Thanks for the contribution! The core viewport fix is solid — merged the I made one adjustment: scoped the Some minor styling details (keyboard accessory bar appearance on tablet, etc.) will be addressed in upcoming mobile optimization work. 👍 |
- Scope toolbar bottom-offset to phone breakpoint only (position:fixed); prevents double-correction on iPad where toolbar is position:relative - Extract keyboard accessory bar styles to top-level mobile.css so /init, /clear, /compact buttons render correctly on iPad - Use desktop-style toolbar sizing on tablet (430-768px): smaller font, no forced min-height, proper gap between buttons - Show voice/mic button on tablet (was hidden at <1023px with no mobile replacement above 430px) - Bump CSS cache-bust version to 0.1633 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
100vhextends behind the browser chrome, pushing the fixed-position toolbar out of viewviewport-fit=coverto viewport meta tag for proper safe area inset support100dvh(dynamic viewport height) with100vhfallback forbodyand.app--app-heightCSS variable fromvisualViewport.heightvia JS inMobileDetectionTest plan
Proofs