Skip to content

The open alternative to Salesforce, designed for AI.

Align navigation icons (#10983)

Guillimd59c989ecd9f
diff --git a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerCollapseButton.tsx b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerCollapseButton.tsx
index 5945bc7ba0e..dfe4c8a0ad4 100644
--- a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerCollapseButton.tsx
+++ b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerCollapseButton.tsx
@@ -46,7 +46,7 @@ export const NavigationDrawerCollapseButton = ({
: IconLayoutSidebarRightCollapse
}
accent="tertiary"
- size="small"
+ size="medium"
/>
</StyledCollapseButton>
);
diff --git a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerHeader.tsx b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerHeader.tsx
index aed5fe5e3be..21ceab9de78 100644
--- a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerHeader.tsx
+++ b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerHeader.tsx
@@ -12,14 +12,18 @@ const StyledContainer = styled.div`
display: flex;
height: ${({ theme }) => theme.spacing(8)};
user-select: none;
+ padding-right: ${({ theme }) => theme.spacing(2)};
`;
const StyledNavigationDrawerCollapseButton = styled(
NavigationDrawerCollapseButton,
)<{ show?: boolean }>`
+ height: ${({ theme }) => theme.spacing(4)};
margin-left: auto;
opacity: ${({ show }) => (show ? 1 : 0)};
+ padding-right: ${({ theme }) => theme.spacing(1)};
transition: opacity ${({ theme }) => theme.animation.duration.normal}s;
+ width: ${({ theme }) => theme.spacing(4)};
`;
type NavigationDrawerHeaderProps = {
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 4c91048073d..aaf9b9d84b4 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
@@ -169,6 +169,7 @@ const StyledKeyBoardShortcut = styled.span`
height: ${({ theme }) => theme.spacing(4)};
justify-content: center;
width: ${({ theme }) => theme.spacing(4)};
+ box-sizing: border-box;
border-radius: ${({ theme }) => theme.border.radius.sm};
border: 1px solid ${({ theme }) => theme.border.color.strong};