Update class logic in DashboardNavigation for electron navigation wrapper
Some checks failed
farmcontrol/farmcontrol-ui/pipeline/head There was a failure building this commit

- Adjusted the class name logic in the `DashboardNavigation` component to conditionally apply the 'electrobun-webkit-app-region-drag' or 'electrobun-webkit-app-region-no-drag' class based on the fullscreen state, enhancing the user interface for electron applications.
This commit is contained in:
Tom Butcher 2026-08-04 02:40:53 +01:00
parent 19ce749e80
commit be51fecba6

View File

@ -369,7 +369,7 @@ const DashboardNavigation = () => {
<>
{isElectron ? (
<Flex
className={`ant-menu-horizontal electron-navigation-wrapper ant-menu-light${!notificationCenterVisible && !isFullScreen ? ' electrobun-webkit-app-region-drag' : ''}`}
className={`ant-menu-horizontal electron-navigation-wrapper ant-menu-light ${!isFullScreen ? 'electrobun-webkit-app-region-drag' : 'electrobun-webkit-app-region-no-drag'}`}
style={{ lineHeight: '40px', padding: '0 2px 0 2px' }}
>
{navigationContents}