Skip to content

Commit 63653e4

Browse files
committed
fixed button size
1 parent 858c294 commit 63653e4

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

packages/twenty-front/src/modules/ui/layout/page/PageHeader.tsx

+19-8
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,23 @@ const StyledTitleContainer = styled.div`
5454
max-width: 50%;
5555
`;
5656

57-
const StyledBackIconButton = styled(IconButton)`
57+
const StyledButtonDiv = styled.div`
58+
align-items: center;
59+
display: flex;
60+
height: 24px;
61+
justify-content: center;
5862
margin-right: ${({ theme }) => theme.spacing(1)};
63+
width: 24px;
64+
`;
65+
const StyledBackIconButton = styled(IconButton)`
66+
height: 24px;
67+
width: 24px;
5968
`;
6069

6170
const StyledTopBarIconStyledTitleContainer = styled.div`
6271
align-items: center;
6372
display: flex;
64-
flex: 1 0 100%;
73+
flex: 1 0 auto;
6574
flex-direction: row;
6675
`;
6776

@@ -102,12 +111,14 @@ export const PageHeader = ({
102111
</StyledTopBarButtonContainer>
103112
)}
104113
{hasBackButton && (
105-
<StyledBackIconButton
106-
Icon={IconChevronLeft}
107-
size={isMobile ? 'small' : 'medium'}
108-
onClick={() => navigate(-1)}
109-
variant="tertiary"
110-
/>
114+
<StyledButtonDiv>
115+
<StyledBackIconButton
116+
Icon={IconChevronLeft}
117+
size={isMobile ? 'small' : 'medium'}
118+
onClick={() => navigate(-1)}
119+
variant="tertiary"
120+
/>
121+
</StyledButtonDiv>
111122
)}
112123
<StyledTopBarIconStyledTitleContainer>
113124
{Icon && <Icon size={theme.icon.size.md} />}

0 commit comments

Comments
 (0)