File tree 1 file changed +19
-8
lines changed
packages/twenty-front/src/modules/ui/layout/page
1 file changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -54,14 +54,23 @@ const StyledTitleContainer = styled.div`
54
54
max-width: 50%;
55
55
` ;
56
56
57
- const StyledBackIconButton = styled ( IconButton ) `
57
+ const StyledButtonDiv = styled . div `
58
+ align-items: center;
59
+ display: flex;
60
+ height: 24px;
61
+ justify-content: center;
58
62
margin-right: ${ ( { theme } ) => theme . spacing ( 1 ) } ;
63
+ width: 24px;
64
+ ` ;
65
+ const StyledBackIconButton = styled ( IconButton ) `
66
+ height: 24px;
67
+ width: 24px;
59
68
` ;
60
69
61
70
const StyledTopBarIconStyledTitleContainer = styled . div `
62
71
align-items: center;
63
72
display: flex;
64
- flex: 1 0 100% ;
73
+ flex: 1 0 auto ;
65
74
flex-direction: row;
66
75
` ;
67
76
@@ -102,12 +111,14 @@ export const PageHeader = ({
102
111
</ StyledTopBarButtonContainer >
103
112
) }
104
113
{ 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 >
111
122
) }
112
123
< StyledTopBarIconStyledTitleContainer >
113
124
{ Icon && < Icon size = { theme . icon . size . md } /> }
You can’t perform that action at this time.
0 commit comments