From 10fa6e1a6f91c115ecabc93d0de98ef0f969342d Mon Sep 17 00:00:00 2001 From: Thomas Trompette Date: Wed, 9 Oct 2024 16:20:24 +0200 Subject: [PATCH] Add margin bottom to all navigation drawer items (#7544) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Capture d’écran 2024-10-09 à 15 43 39 Capture d’écran 2024-10-09 à 15 43 49 --- .../SettingsNavigationDrawerItems.tsx | 20 ++++++++----------- .../components/NavigationDrawerSection.tsx | 1 + 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/packages/twenty-front/src/modules/settings/components/SettingsNavigationDrawerItems.tsx b/packages/twenty-front/src/modules/settings/components/SettingsNavigationDrawerItems.tsx index b41eb757e..e84a7d273 100644 --- a/packages/twenty-front/src/modules/settings/components/SettingsNavigationDrawerItems.tsx +++ b/packages/twenty-front/src/modules/settings/components/SettingsNavigationDrawerItems.tsx @@ -47,10 +47,6 @@ type SettingsNavigationItem = { indentationLevel?: NavigationDrawerItemIndentationLevel; }; -const StyledNavigationDrawerSection = styled(NavigationDrawerSection)` - margin-bottom: ${({ theme }) => theme.spacing(3)}; -`; - const StyledIconContainer = styled.div` border-right: 1px solid ${MAIN_COLORS.yellow}; position: absolute; @@ -121,7 +117,7 @@ export const SettingsNavigationDrawerItems = () => { return ( <> - + { /> ))} - - + + { Icon={IconCode} /> )} - + {isAdvancedModeEnabled && ( { - + { Icon={IconFunction} /> )} - + )} - + { onClick={signOut} Icon={IconDoorEnter} /> - + ); }; diff --git a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerSection.tsx b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerSection.tsx index c1fd93847..2ba985033 100644 --- a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerSection.tsx +++ b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerSection.tsx @@ -5,6 +5,7 @@ const StyledSection = styled.div` flex-direction: column; gap: ${({ theme }) => theme.betweenSiblingsGap}; width: 100%; + margin-bottom: ${({ theme }) => theme.spacing(3)}; `; export { StyledSection as NavigationDrawerSection };