Commit 6312afa
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
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
| 273 | + | |
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| |||
0 commit comments