Skip to content

Commit 6312afa

Browse files
authored
🤖 fix: use dvh units for body height (#555)
Replaces `100vh` with `100dvh` for the main app container to fix content clipping on mobile browsers with dynamic UI chrome. Mobile Safari and other mobile browsers show/hide the address bar and toolbar on scroll. Using `100vh` causes content to be cut off when this chrome is visible because `100vh` represents the maximum viewport height (when chrome is hidden). The `100dvh` unit dynamically adapts to the actual visible viewport height as the browser chrome appears and disappears, preventing content from being clipped. _Generated with `cmux`_
1 parent 7402804 commit 6312afa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/styles/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ body {
270270
html,
271271
body,
272272
#root {
273-
height: 100vh;
273+
height: 100dvh;
274274
overflow: hidden;
275275
}
276276

0 commit comments

Comments
 (0)