Skip to content

Commit e0797d7

Browse files
authored
feat: safe area styling for ios pwa (#3693)
1 parent 25d8ba4 commit e0797d7

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

assets/main.css

+9
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,12 @@
126126
}
127127
}
128128
}
129+
130+
nav {
131+
padding-top: env(safe-area-inset-top);
132+
}
133+
134+
body {
135+
padding-top: env(safe-area-inset-top);
136+
padding-bottom: env(safe-area-inset-bottom);
137+
}

public/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover" />
6+
<meta name="apple-mobile-web-app-capable" content="yes" />
7+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
68
<title>Dozzle</title>
79
<script type="application/json" id="config__json">
810
{{ marshal .Config }}

0 commit comments

Comments
 (0)