From 5ff8c3b219816323f9823a7c2d853a706b120dd2 Mon Sep 17 00:00:00 2001 From: nitin <142569587+ehconitin@users.noreply.github.com> Date: Wed, 27 May 2026 20:36:45 +0530 Subject: [PATCH] revert(navigation-drawer): unwanted desktop design changes from #20634 (#20955) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow-up to #20634. Removes three desktop design changes that bled in unintentionally: - `font-weight: regular` → restored to `medium` on nav item labels - `MenuItemIconBoxContainer` wrap around bare icons → removed - Section title `padding-right/top` tweak → restored to original values Mobile-specific fixes from #20634 (slide-over drawer width, min-width overflow fixes, breadcrumb cleanup, etc.) are preserved. --- .../components/NavigationDrawerItem.tsx | 29 +++++++++---------- .../NavigationDrawerSectionTitle.tsx | 4 +-- 2 files changed, 15 insertions(+), 18 deletions(-) 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 0520c895ea..80a3ae293d 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 @@ -24,7 +24,6 @@ import { TooltipDelay, TooltipPosition, } from 'twenty-ui/display'; -import { MenuItemIconBoxContainer } from 'twenty-ui/navigation'; import { MOBILE_VIEWPORT, ThemeContext, @@ -162,7 +161,7 @@ const StyledLabelParent = styled.div` `; const StyledItemLabel = styled.span` - font-weight: ${themeCssVariables.font.weight.regular}; + font-weight: ${themeCssVariables.font.weight.medium}; `; const StyledItemSecondaryLabel = styled.span` @@ -350,20 +349,18 @@ export const NavigationDrawerItem = ({ ) : ( - - - + ))} diff --git a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerSectionTitle.tsx b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerSectionTitle.tsx index 2b54ccdec7..0a89c0298c 100644 --- a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerSectionTitle.tsx +++ b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerSectionTitle.tsx @@ -17,8 +17,8 @@ const StyledTitle = styled.div` justify-content: space-between; padding-bottom: ${themeCssVariables.spacing[1]}; padding-left: ${themeCssVariables.spacing[1]}; - padding-right: ${themeCssVariables.spacing[1]}; - padding-top: ${themeCssVariables.spacing[2]}; + padding-right: ${themeCssVariables.spacing['0.5']}; + padding-top: ${themeCssVariables.spacing[1]}; &:hover { background-color: ${themeCssVariables.background.transparent.light};