Skip to content

The open alternative to Salesforce, designed for AI.

fix(navigation): settings drawer should never appear collapsed (#20505)

gusfromspace068fc9363d91
diff --git a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawer.tsx b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawer.tsx
index 20a10907ad6..d05e350dc41 100644
--- a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawer.tsx
+++ b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawer.tsx
@@ -114,19 +114,21 @@ export const NavigationDrawer = ({
setTableWidthResizeIsActive(false);
};
+ const isExpanded = isSettingsDrawer || isNavigationDrawerExpanded;
+
return (
<>
<NavigationDrawerWidthEffect />
<StyledAnimatedContainer
className={className}
data-click-outside-id={NAVIGATION_DRAWER_CLICK_OUTSIDE_ID}
- isExpanded={isNavigationDrawerExpanded}
+ isExpanded={isExpanded}
isResizing={isResizing}
>
<StyledContainer
isSettings={isSettingsDrawer}
isMobile={isMobile}
- isExpanded={isNavigationDrawerExpanded}
+ isExpanded={isExpanded}
>
{isSettingsDrawer && title ? (
<NavigationDrawerBackButton title={title} />