diff --git a/assets/stylesheets/App.css b/assets/stylesheets/App.css index 3614b88..7ab93d0 100644 --- a/assets/stylesheets/App.css +++ b/assets/stylesheets/App.css @@ -104,8 +104,10 @@ line-height: 0.7; } -.electron-navigation-wrapper.electrobun-webkit-app-region-drag { +.electron-navigation-wrapper { user-select: none; + --webkit-user-select: none; + z-index: 10000; } /* Native macOS vibrancy — transparent web content over NSVisualEffectView */ diff --git a/src/components/Dashboard/common/DashboardNavigation.jsx b/src/components/Dashboard/common/DashboardNavigation.jsx index 2dc40cb..94e2709 100644 --- a/src/components/Dashboard/common/DashboardNavigation.jsx +++ b/src/components/Dashboard/common/DashboardNavigation.jsx @@ -52,6 +52,7 @@ const DashboardNavigation = () => { const { userProfile } = useContext(AuthContext) const { showSpotlight } = useContext(SpotlightContext) const { connecting, connected } = useContext(ApiServerContext) + const { authenticated } = useContext(AuthContext) const { toggleNotificationCenter, unreadCount, notificationCenterVisible } = useContext(NotificationContext) const [apiServerState, setApiServerState] = useState('disconnected') @@ -147,6 +148,8 @@ const DashboardNavigation = () => { const showDesktopLogo = !isElectron && !isMobile const showMobileLogo = !isElectron && isMobile + const showControls = !isElectron || authenticated + const navigationContents = ( {isMacOSApp ? : null} @@ -209,26 +212,41 @@ const DashboardNavigation = () => { )}
- } - style={{ marginBottom: '4px' }} - /> - } - /> + {showControls && ( + } + style={{ marginBottom: '4px' }} + /> + } + /> + )} + {!showControls && ( + + Farm Control + + )}
{isMobile &&
} @@ -238,40 +256,42 @@ const DashboardNavigation = () => { align='center' style={{ marginTop: '-2px', marginRight: '6px' }} > - - - showSpotlight()} - > -