Unused empty at the bottom of screen in standalone mode #38

Closed
opened 2024-11-03 16:35:14 +00:00 by Rubicon · 3 comments
Owner

In standalone mode on iOS, There is a weird empty at the bottom of the screen.

Environment: iOS 18, iPhone 12.

In standalone mode on iOS, There is a weird empty at the bottom of the screen. Environment: iOS 18, iPhone 12.
Rubicon added the
bug
user-agent/webkit
labels 2024-11-03 16:35:14 +00:00
Author
Owner

Could not reproduced on GNOME Web 47.2

Could not reproduced on GNOME Web 47.2
Rubicon added this to the v1.1.0 milestone 2024-11-10 08:57:15 +00:00
Rubicon self-assigned this 2024-11-10 08:58:47 +00:00
Author
Owner
Seems related: https://stackoverflow.com/questions/66005655/pwa-ios-child-of-body-not-taking-100-height-gap-on-bottom
Author
Owner

Seems related: https://stackoverflow.com/questions/66005655/pwa-ios-child-of-body-not-taking-100-height-gap-on-bottom

Deployed a fix based on the answer in this question.

Lines 13 to 29 in 0e33be0
Fix the bottom gap on iOS standalone.
https://stackoverflow.com/questions/66005655/pwa-ios-child-of-body-not-taking-100-height-gap-on-bottom
*/
@media screen and (display-mode: standalone) {
body {
width: 100%;
height: 100vh;
}
#root {
position: fixed;
top: 0;
left: 0;
height: 100vh;
width: 100vw;
}
}

> Seems related: https://stackoverflow.com/questions/66005655/pwa-ios-child-of-body-not-taking-100-height-gap-on-bottom Deployed a fix based on the answer in this question. https://code.lightstands.xyz/Rubicon/tutu/src/commit/0e33be020d651b482d7f767ba1eeb37e1bbcc205/src/App.css#L13-L29
Sign in to join this conversation.
No description provided.