Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesBochet committed Jan 3, 2024
1 parent 63653e4 commit 2194b32
Showing 1 changed file with 7 additions and 22 deletions.
29 changes: 7 additions & 22 deletions packages/twenty-front/src/modules/ui/layout/page/PageHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const StyledLeftContainer = styled.div`
display: flex;
flex-direction: row;
gap: ${({ theme }) => theme.spacing(1)};
padding-left: ${({ theme }) => theme.spacing(2)};
padding-left: ${({ theme }) => theme.spacing(1)};
width: 100%;
@media (max-width: ${MOBILE_VIEWPORT}px) {
Expand All @@ -54,19 +54,6 @@ const StyledTitleContainer = styled.div`
max-width: 50%;
`;

const StyledButtonDiv = styled.div`
align-items: center;
display: flex;
height: 24px;
justify-content: center;
margin-right: ${({ theme }) => theme.spacing(1)};
width: 24px;
`;
const StyledBackIconButton = styled(IconButton)`
height: 24px;
width: 24px;
`;

const StyledTopBarIconStyledTitleContainer = styled.div`
align-items: center;
display: flex;
Expand Down Expand Up @@ -111,14 +98,12 @@ export const PageHeader = ({
</StyledTopBarButtonContainer>
)}
{hasBackButton && (
<StyledButtonDiv>
<StyledBackIconButton
Icon={IconChevronLeft}
size={isMobile ? 'small' : 'medium'}
onClick={() => navigate(-1)}
variant="tertiary"
/>
</StyledButtonDiv>
<IconButton
Icon={IconChevronLeft}
size="small"
onClick={() => navigate(-1)}
variant="tertiary"
/>
)}
<StyledTopBarIconStyledTitleContainer>
{Icon && <Icon size={theme.icon.size.md} />}
Expand Down

0 comments on commit 2194b32

Please sign in to comment.