Skip to content

Commit

Permalink
test: viewport fit
Browse files Browse the repository at this point in the history
  • Loading branch information
thenick775 committed Dec 21, 2024
1 parent 8c3d3d1 commit 0aa7ad1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gbajs3/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link rel="icon" href="/img/favicon.ico" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, viewport-fit=cover"
/>
<meta
name="description"
Expand Down
6 changes: 6 additions & 0 deletions gbajs3/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ body {
font-family: 'Calibri', 'Verdana', sans-serif;
}

html {
min-height: calc(100% + env(safe-area-inset-top));
padding: env(safe-area-inset-top) env(safe-area-inset-right)
env(safe-area-inset-bottom) env(safe-area-inset-left);
}

html,
body {
overscroll-behavior: none;
Expand Down

0 comments on commit 0aa7ad1

Please sign in to comment.