Skip to content

Commit de358fb

Browse files
feat: Add support for iOS safe area
1 parent 42cd65f commit de358fb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/site-kit/src/app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<link rel="icon" href="/favicon.png" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
77

88
%sveltekit.head%
99
</head>

packages/site-kit/src/lib/nav/Nav.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,8 @@ Top navigation bar for the application. It provides a slot for the left side, th
311311
nav {
312312
top: unset;
313313
bottom: 0;
314+
padding-bottom: env(safe-area-inset-bottom);
315+
height: calc(var(--sk-nav-height) + env(safe-area-inset-bottom));
314316
}
315317
316318
.menu {

0 commit comments

Comments
 (0)