diff --git a/app/[leaflet_id]/Leaflet.tsx b/app/[leaflet_id]/Leaflet.tsx
index 0970289f..582faba4 100644
--- a/app/[leaflet_id]/Leaflet.tsx
+++ b/app/[leaflet_id]/Leaflet.tsx
@@ -37,10 +37,10 @@ export function Leaflet(props: {
- {/* we need the padding bottom here because if we don't have it the mobile footer will cut off
+ {/* we need the padding bottom here because if we don't have it the mobile footer will cut off
the dropshadow on the page... the padding is compensated by a negative top margin in mobile footer */}
diff --git a/app/globals.css b/app/globals.css
index 57d3b576..aeb1c348 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -240,3 +240,10 @@ input[type="number"] {
z-index: 0;
}
}
+
+.pwa-padding {
+ padding-top: max(calc(env(safe-area-inset-top) - 8px)) !important;
+}
+.pwa-padding-bottom {
+ padding-bottom: max(calc(env(safe-area-inset-bottom) - 14px), 8px);
+}
diff --git a/app/home/LoggedOutWarning.tsx b/app/home/LoggedOutWarning.tsx
index 8b760195..b4ca4955 100644
--- a/app/home/LoggedOutWarning.tsx
+++ b/app/home/LoggedOutWarning.tsx
@@ -10,7 +10,7 @@ export const LoggedOutWarning = (props: {}) => {
className={`
homeWarning z-10 shrink-0
bg-bg-page rounded-md
- absolute bottom-14 left-2 right-2
+ absolute bottom-16 left-2 right-2
sm:static sm:mr-1 sm:ml-6 sm:mt-6 border border-border-light`}
>
diff --git a/app/home/page.tsx b/app/home/page.tsx
index 7f9cba8d..b4071e53 100644
--- a/app/home/page.tsx
+++ b/app/home/page.tsx
@@ -99,7 +99,7 @@ export default async function Home() {
set={permission_token.permission_token_rights[0].entity_set}
>
-
+
{!auth_res && (
@@ -107,7 +107,13 @@ export default async function Home() {
)}
-
+
diff --git a/app/layout.tsx b/app/layout.tsx
index a3d2d093..26e2876c 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -29,6 +29,7 @@ export const metadata = {
};
export const viewport = {
+ themeColor: "#ffffff",
minimumScale: 1,
initialScale: 1,
maximumScale: 1,
diff --git a/components/MobileFooter.tsx b/components/MobileFooter.tsx
index 03e13b8a..b0d1c418 100644
--- a/components/MobileFooter.tsx
+++ b/components/MobileFooter.tsx
@@ -14,7 +14,7 @@ export function MobileFooter(props: { entityID: string }) {
let entity_set = useEntitySetContext();
return (
-
+
{focusedBlock &&
focusedBlock.entityType == "block" &&
entity_set.permissions.write ? (
@@ -30,7 +30,7 @@ export function MobileFooter(props: { entityID: string }) {
/>
) : entity_set.permissions.write ? (
-
+
diff --git a/components/ThemeManager/ThemeProvider.tsx b/components/ThemeManager/ThemeProvider.tsx
index d81b73c3..3e21e2c2 100644
--- a/components/ThemeManager/ThemeProvider.tsx
+++ b/components/ThemeManager/ThemeProvider.tsx
@@ -76,6 +76,9 @@ export function ThemeProvider(props: {
if (!el) return;
setCSSVariableToColor(el, "--bg-leaflet", bgLeaflet);
setCSSVariableToColor(el, "--bg-page", bgPage);
+ document
+ .querySelector('meta[name="theme-color"]')
+ ?.setAttribute("content", `rgb(${colorToString(bgLeaflet, "rgb")})`);
el?.style.setProperty(
"--bg-page-alpha",
bgPage.getChannelValue("alpha").toString(),
@@ -122,7 +125,7 @@ export function ThemeProvider(props: {
]);
return (