diff --git a/admin-spa/src/App.tsx b/admin-spa/src/App.tsx
index 3abcc7d..701afd3 100644
--- a/admin-spa/src/App.tsx
+++ b/admin-spa/src/App.tsx
@@ -257,21 +257,23 @@ function AddonRoute({ config }: { config: any }) {
return ;
}
-function Header({ onFullscreen, fullscreen }: { onFullscreen: () => void; fullscreen: boolean }) {
+function Header({ onFullscreen, fullscreen, showToggle = true }: { onFullscreen: () => void; fullscreen: boolean; showToggle?: boolean }) {
const siteTitle = (window as any).wnw?.siteTitle || 'WooNooW';
return (
);
@@ -341,17 +343,21 @@ function Shell() {
const isDesktop = useIsDesktop();
const location = useLocation();
+ // Check if standalone mode - force fullscreen and hide toggle
+ const isStandalone = window.WNW_CONFIG?.standaloneMode ?? false;
+ const fullscreen = isStandalone ? true : on;
+
// Check if current route is dashboard
const isDashboardRoute = location.pathname === '/' || location.pathname.startsWith('/dashboard');
const SubmenuComponent = isDashboardRoute ? DashboardSubmenuBar : SubmenuBar;
return (
<>
-
-
-
-
- {on ? (
+ {!isStandalone &&
}
+ {!isStandalone &&
}
+
+
+ {fullscreen ? (
isDesktop ? (