Skip to content

The open alternative to Salesforce, designed for AI.

Reset overflow visible to previous value, fix console error (#13586)

Félix Malfait5c7c8d1bbafa
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 3504f65667e..97ef1390792 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
@@ -21,7 +21,7 @@ export type NavigationDrawerProps = {
const StyledAnimatedContainer = styled(motion.div)`
max-height: 100vh;
- overflow: visible;
+ overflow: hidden;
`;
const StyledContainer = styled.div<{
diff --git a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerItem.tsx b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerItem.tsx
index 1b0a24fe65c..a8b01c285ee 100644
--- a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerItem.tsx
+++ b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerItem.tsx
@@ -307,7 +307,7 @@ export const NavigationDrawerItem = ({
aria-selected={active}
danger={danger}
soon={soon}
- as={to ? Link : undefined}
+ as={to ? Link : rightOptions ? 'div' : undefined}
to={to ? to : undefined}
indentationLevel={indentationLevel}
isNavigationDrawerExpanded={isNavigationDrawerExpanded}