🐛 fix(headerbar): Fix the issue where the header disappears on mobile screen sizes.
This commit is contained in:
@@ -84,7 +84,7 @@ const PageLayout = () => {
|
|||||||
padding: 0,
|
padding: 0,
|
||||||
height: 'auto',
|
height: 'auto',
|
||||||
lineHeight: 'normal',
|
lineHeight: 'normal',
|
||||||
position: styleState.isMobile ? 'sticky' : 'fixed',
|
position: 'fixed',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
top: 0,
|
top: 0,
|
||||||
zIndex: 100,
|
zIndex: 100,
|
||||||
@@ -95,8 +95,8 @@ const PageLayout = () => {
|
|||||||
</Header>
|
</Header>
|
||||||
<Layout
|
<Layout
|
||||||
style={{
|
style={{
|
||||||
marginTop: styleState.isMobile ? '0' : '56px',
|
marginTop: '56px',
|
||||||
height: styleState.isMobile ? 'auto' : 'calc(100vh - 56px)',
|
height: 'calc(100vh - 56px)',
|
||||||
overflow: styleState.isMobile ? 'visible' : 'auto',
|
overflow: styleState.isMobile ? 'visible' : 'auto',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
|
|||||||
Reference in New Issue
Block a user