From b84f7482373dfc9d60f76f967c8c470d5bc5a1b9 Mon Sep 17 00:00:00 2001 From: Thomas des Francs Date: Fri, 26 Jun 2026 15:58:57 +0200 Subject: [PATCH] Fix navigation opened section spacing (#22222) ## Summary - Remove the collapsed empty `Opened` sidebar section when no opened object exists. - Restore the first navigation section top alignment with the settings `User` section. ## Before/After Visual verification after the fix: in the current fixture data, the first visible main sidebar section (`Favorites`) starts at y=92, matching the settings `User` section at y=92. This confirms there is no collapsed `Opened` spacer pushing the main drawer content down. Review in cubic --- .../components/NavigationDrawerOpenedSection.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/twenty-front/src/modules/navigation-menu-item/display/sections/components/NavigationDrawerOpenedSection.tsx b/packages/twenty-front/src/modules/navigation-menu-item/display/sections/components/NavigationDrawerOpenedSection.tsx index 8b1a8dadf8..563195cd30 100644 --- a/packages/twenty-front/src/modules/navigation-menu-item/display/sections/components/NavigationDrawerOpenedSection.tsx +++ b/packages/twenty-front/src/modules/navigation-menu-item/display/sections/components/NavigationDrawerOpenedSection.tsx @@ -17,15 +17,15 @@ export const NavigationDrawerOpenedSection = () => { (item) => item.id === objectMetadataIdForOpenedSection, ); - const shouldShowOpenedSection = isDefined(objectMetadataItem); + if (!isDefined(objectMetadataItem)) { + return null; + } return ( - + );