From 9dd7f256ba904f4570e65351c772db53bd4586c3 Mon Sep 17 00:00:00 2001
From: Philip H <47042125+pheiduck@users.noreply.github.com>
Date: Thu, 8 Aug 2024 20:33:01 +0200
Subject: [PATCH] fix: Status Bar Color Issue in PWA on iOS 18
Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
---
src/www/css/app.css | 7 +++++--
src/www/index.html | 3 ++-
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/www/css/app.css b/src/www/css/app.css
index 0827163..152d7b8 100644
--- a/src/www/css/app.css
+++ b/src/www/css/app.css
@@ -63,9 +63,12 @@ html,
body {
margin: 0;
- /* 1 */
line-height: inherit;
- /* 2 */
+ padding-top: env(safe-area-inset-top);
+ padding-bottom: env(safe-area-inset-bottom);
+ padding-left: env(safe-area-inset-left);
+ padding-right: env(safe-area-inset-right);
+ box-sizing: border-box;
}
/*
diff --git a/src/www/index.html b/src/www/index.html
index 4b7dc17..236a8f3 100644
--- a/src/www/index.html
+++ b/src/www/index.html
@@ -10,6 +10,7 @@
+