fix: eliminate black gap below bottom nav in iOS PWA standalone mode
iOS reserves the home indicator area outside the CSS viewport, leaving a black strip below the bottom navigation. A fixed body::after pseudo- element now fills this zone with the surface color. Also added explicit background-color on body for consistent rendering.
This commit is contained in:
@@ -76,4 +76,19 @@ nav,
|
||||
.app-content {
|
||||
overscroll-behavior-y: contain;
|
||||
}
|
||||
|
||||
/* iOS PWA: Schwarzen Streifen unter der Nav verhindern.
|
||||
* iOS reserviert den Home-Indicator-Bereich unterhalb des CSS-Viewports.
|
||||
* Ein ::after-Element mit fester Position füllt diesen Bereich mit der
|
||||
* Surface-Farbe, sodass kein schwarzer Spalt sichtbar ist. */
|
||||
body::after {
|
||||
content: '';
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: env(safe-area-inset-bottom, 0px);
|
||||
background-color: var(--color-surface);
|
||||
z-index: var(--z-nav);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ html {
|
||||
body {
|
||||
height: 100dvh;
|
||||
overflow: hidden;
|
||||
background-color: var(--color-bg);
|
||||
}
|
||||
|
||||
img, svg, video {
|
||||
|
||||
Reference in New Issue
Block a user