fix: Content appearing behind status bar in iOS PWA on some models of phone 🤷
This commit is contained in:
@ -19,17 +19,6 @@ export default function PageTheme() {
|
|||||||
themeElement.setAttribute("content", theme.background);
|
themeElement.setAttribute("content", theme.background);
|
||||||
}
|
}
|
||||||
|
|
||||||
// status bar color for iOS PWA
|
|
||||||
const statusElement = document.querySelector(
|
|
||||||
'meta[name="apple-mobile-web-app-status-bar-style"]'
|
|
||||||
);
|
|
||||||
if (statusElement) {
|
|
||||||
statusElement.setAttribute(
|
|
||||||
"content",
|
|
||||||
ui.resolvedTheme === "dark" ? "black-translucent" : "default"
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
// user-agent controls and scrollbars
|
// user-agent controls and scrollbars
|
||||||
const csElement = document.querySelector('meta[name="color-scheme"]');
|
const csElement = document.querySelector('meta[name="color-scheme"]');
|
||||||
if (csElement) {
|
if (csElement) {
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta name="color-scheme" content="light dark">
|
<meta name="color-scheme" content="light dark">
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
|
||||||
<meta name="description" content="A modern team knowledge base for your internal documentation, product specs, support answers, meeting notes, onboarding, & more…">
|
<meta name="description" content="A modern team knowledge base for your internal documentation, product specs, support answers, meeting notes, onboarding, & more…">
|
||||||
//inject-prefetch//
|
//inject-prefetch//
|
||||||
<link
|
<link
|
||||||
|
Reference in New Issue
Block a user