The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Navigation Panel UI Sizing Changes (#5964)
Ymird126b148a19b
diff --git a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/MultiWorkspaceDropdownButton.tsx b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/MultiWorkspaceDropdownButton.tsxindex 0249de11c09..23d356aa4fe 100644--- a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/MultiWorkspaceDropdownButton.tsx+++ b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/MultiWorkspaceDropdownButton.tsx@@ -33,10 +33,12 @@ const StyledContainer = styled.div`border: 1px solid transparent;display: flex;justify-content: space-between;- height: ${({ theme }) => theme.spacing(7)};- padding: 0 ${({ theme }) => theme.spacing(2)};+ height: ${({ theme }) => theme.spacing(5)};+ padding: calc(${({ theme }) => theme.spacing(1)} - 1px);width: 100%;+ gap: ${({ theme }) => theme.spacing(1)};+&:hover {background-color: ${({ theme }) => theme.background.transparent.lighter};border: 1px solid ${({ theme }) => theme.border.color.medium};@@ -46,7 +48,6 @@ const StyledContainer = styled.div`const StyledLabel = styled.div`align-items: center;display: flex;- gap: ${({ theme }) => theme.spacing(2)};`;const StyledIconChevronDown = styled(IconChevronDown)<{ disabled?: boolean }>`diff --git a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawer.tsx b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawer.tsxindex 524e8794769..40640237764 100644--- a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawer.tsx+++ b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawer.tsx@@ -53,7 +53,7 @@ const StyledContainer = styled.div<{ isSubMenu?: boolean }>`const StyledItemsContainer = styled.div`display: flex;flex-direction: column;- gap: ${({ theme }) => theme.spacing(8)};+ gap: ${({ theme }) => theme.spacing(3)};margin-bottom: auto;overflow-y: auto;`;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.tsxindex 856cb3041a8..d555a43599d 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@@ -14,7 +14,7 @@ const StyledCollapseButton = styled.div`color: ${({ theme }) => theme.font.color.light};cursor: pointer;display: flex;- height: ${({ theme }) => theme.spacing(6)};+ height: ${({ theme }) => theme.spacing(5)};justify-content: center;user-select: none;width: ${({ theme }) => theme.spacing(6)};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.tsxindex eae27e8c73d..72b384fb0c9 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,9 +12,7 @@ import { NavigationDrawerCollapseButton } from './NavigationDrawerCollapseButtonconst StyledContainer = styled.div`align-items: center;display: flex;- gap: ${({ theme }) => theme.spacing(2)};- height: ${({ theme }) => theme.spacing(6)};- padding: ${({ theme }) => theme.spacing(1)};+ height: ${({ theme }) => theme.spacing(7)};user-select: none;`;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.tsxindex 8f0dd6ed2f8..d4f33fb82a1 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@@ -39,6 +39,7 @@ const StyledItem = styled('div', {align-items: center;background: ${(props) =>props.active ? props.theme.background.transparent.light : 'inherit'};+ height: ${({ theme }) => theme.spacing(5)};border: none;border-radius: ${({ theme }) => theme.border.radius.sm};text-decoration: none;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.tsxindex 3d3f6938706..4f8386e12d0 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@@ -16,7 +16,7 @@ const StyledTitle = styled.div<{ onClick?: () => void }>`display: flex;font-size: ${({ theme }) => theme.font.size.xs};font-weight: ${({ theme }) => theme.font.weight.semiBold};- height: ${({ theme }) => theme.spacing(4)};+ height: ${({ theme }) => theme.spacing(5)};padding: ${({ theme }) => theme.spacing(1)};${({ onClick, theme }) =>