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 33e9ef152708..ded8a5772cc7 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 @@ -22,9 +22,9 @@ export type NavigationDrawerProps = { title?: string; }; -const StyledAnimatedContainer = styled(motion.div)` +const StyledAnimatedContainer = styled(motion.div)<{ isSettings?: boolean }>` max-height: 100vh; - overflow: hidden; + overflow: ${({ isSettings }) => (isSettings ? 'visible' : 'hidden')}; `; const StyledContainer = styled.div<{ @@ -50,11 +50,12 @@ const StyledContainer = styled.div<{ padding-right: 20px; } `; -const StyledItemsContainer = styled.div` + +const StyledItemsContainer = styled.div<{ isSettings?: boolean }>` display: flex; flex-direction: column; margin-bottom: auto; - overflow: hidden; + overflow: ${({ isSettings }) => (isSettings ? 'visible' : 'hidden')}; flex: 1; `; @@ -102,6 +103,7 @@ export const NavigationDrawer = ({ transition={{ duration: theme.animation.duration.normal, }} + isSettings={isSettingsDrawer} > )} - {children} + + {children} + {footer}