Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
Fix viewport bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonfagan committed Oct 3, 2023
1 parent 837d502 commit 6450d34
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,11 @@

body {
@apply font-body;
}

@supports(padding:max(0px)) {
body, header, footer {
padding-left: min(0vmin, env(safe-area-inset-left));
padding-right: min(0vmin, env(safe-area-inset-right));
}
}
1 change: 0 additions & 1 deletion src/lib/components/Head.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@
<meta name="twitter:site" content={twitterHandle} />
<meta name="twitter:title" content={title} />
<link rel="canonical" href={url} />
<meta name="viewport" content="viewport-fit=cover">
</svelte:head>

0 comments on commit 6450d34

Please sign in to comment.