From c506ae3242bb2773349c99fb105fe77d54e9f618 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Thu, 30 Oct 2025 21:48:31 +0100 Subject: [PATCH] Fix statusbard --- web/pages/_app.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/web/pages/_app.tsx b/web/pages/_app.tsx index eef680e2..b52a51a0 100644 --- a/web/pages/_app.tsx +++ b/web/pages/_app.tsx @@ -16,6 +16,14 @@ import {unauthedApi} from "common/util/api"; import {GoogleAuthProvider, signInWithCredential} from "firebase/auth"; import {auth} from "web/lib/firebase/users"; import {isAndroidWebView} from "web/lib/util/webview"; +import { Capacitor } from '@capacitor/core'; +import { StatusBar, Style } from '@capacitor/status-bar'; + +if (Capacitor.isNativePlatform()) { + // Only runs on iOS/Android native + StatusBar.setOverlaysWebView({ overlay: false }).catch(console.warn); + StatusBar.setStyle({ style: Style.Light }).catch(console.warn); +} // See https://nextjs.org/docs/basic-features/font-optimization#google-fonts