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. 👍 |
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