diff --git a/admin-spa/src/App.tsx b/admin-spa/src/App.tsx index ebe74bc..40ca763 100644 --- a/admin-spa/src/App.tsx +++ b/admin-spa/src/App.tsx @@ -414,13 +414,13 @@ function Shell() { isDesktop ? (
-
+
{isDashboardRoute ? ( ) : ( )} -
+
@@ -433,8 +433,10 @@ function Shell() { ) : ( )} -
- +
+
+ +
) @@ -446,8 +448,10 @@ function Shell() { ) : ( )} -
- +
+
+ +
)} diff --git a/admin-spa/src/routes/Settings/components/SettingsLayout.tsx b/admin-spa/src/routes/Settings/components/SettingsLayout.tsx index fe0d036..a771052 100644 --- a/admin-spa/src/routes/Settings/components/SettingsLayout.tsx +++ b/admin-spa/src/routes/Settings/components/SettingsLayout.tsx @@ -33,31 +33,11 @@ export function SettingsLayout({ } }; - // Detect fullscreen mode - const [isFullscreen, setIsFullscreen] = React.useState(false); - - React.useEffect(() => { - const checkFullscreen = () => { - setIsFullscreen(document.querySelector('.woonoow-fullscreen-root') !== null); - }; - - checkFullscreen(); - // Re-check on route changes or mode toggles - const observer = new MutationObserver(checkFullscreen); - observer.observe(document.body, { attributes: true, attributeFilter: ['class'], subtree: true }); - - return () => observer.disconnect(); - }, []); - - // In fullscreen: submenu is inside scrollable area, so offset by submenu height (49px) - // In WP-Admin: submenu is outside scrollable area, so no offset needed (top-0) - const stickyTop = isFullscreen ? 'top-[49px]' : 'top-0'; - return (
{/* Sticky Header with Save Button - Edge to edge */} {onSave && ( -
+

{title}