Skip to content

Commit c2ecf17

Browse files
committed
fix(demo): match the visible viewport on mobile browser UI
1 parent f6df417 commit c2ecf17

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

examples/vite/src/index.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ body {
2424
#root {
2525
display: flex;
2626
flex-direction: column;
27+
/* Fallback for browsers without dynamic viewport units */
2728
height: 100vh;
29+
/* Match the visible viewport on mobile browser UI changes */
30+
height: 100dvh;
2831
min-height: 0;
2932
}
3033

0 commit comments

Comments
 (0)