Skip to content

The open alternative to Salesforce, designed for AI.

Add margin bottom to all navigation drawer items (#7544)

Thomas Trompette10fa6e1a6f91
diff --git a/packages/twenty-front/src/modules/settings/components/SettingsNavigationDrawerItems.tsx b/packages/twenty-front/src/modules/settings/components/SettingsNavigationDrawerItems.tsx
index b41eb757e9b..e84a7d2734e 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 (
<>
- <StyledNavigationDrawerSection>
+ <NavigationDrawerSection>
<NavigationDrawerSectionTitle label="User" />
<SettingsNavigationDrawerItem
label="Profile"
@@ -154,8 +150,8 @@ export const SettingsNavigationDrawerItems = () => {
/>
))}
</NavigationDrawerItemGroup>
- </StyledNavigationDrawerSection>
- <StyledNavigationDrawerSection>
+ </NavigationDrawerSection>
+ <NavigationDrawerSection>
<NavigationDrawerSectionTitle label="Workspace" />
<SettingsNavigationDrawerItem
label="General"
@@ -192,7 +188,7 @@ export const SettingsNavigationDrawerItems = () => {
Icon={IconCode}
/>
)}
- </StyledNavigationDrawerSection>
+ </NavigationDrawerSection>
<AnimatePresence>
{isAdvancedModeEnabled && (
<motion.div
@@ -206,7 +202,7 @@ export const SettingsNavigationDrawerItems = () => {
<StyledIconContainer>
<StyledIconTool size={12} color={MAIN_COLORS.yellow} />
</StyledIconContainer>
- <StyledNavigationDrawerSection>
+ <NavigationDrawerSection>
<NavigationDrawerSectionTitle label="Developers" />
<SettingsNavigationDrawerItem
label="API & Webhooks"
@@ -220,12 +216,12 @@ export const SettingsNavigationDrawerItems = () => {
Icon={IconFunction}
/>
)}
- </StyledNavigationDrawerSection>
+ </NavigationDrawerSection>
</StyledDeveloperSection>
</motion.div>
)}
</AnimatePresence>
- <StyledNavigationDrawerSection>
+ <NavigationDrawerSection>
<NavigationDrawerSectionTitle label="Other" />
<SettingsNavigationDrawerItem
label="Releases"
@@ -237,7 +233,7 @@ export const SettingsNavigationDrawerItems = () => {
onClick={signOut}
Icon={IconDoorEnter}
/>
- </StyledNavigationDrawerSection>
+ </NavigationDrawerSection>
</>
);
};
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 c1fd938476a..2ba98503329 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 };