Просмотр исходного кода

🐛 fix(headerbar): Fix the issue where the header disappears on mobile screen sizes.

Apple\Apple 9 месяцев назад
Родитель
Сommit
21077d4696
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      web/src/components/PageLayout.js

+ 3 - 3
web/src/components/PageLayout.js

@@ -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',
-          height: styleState.isMobile ? 'auto' : 'calc(100vh - 56px)',
+          marginTop: '56px',
+          height: 'calc(100vh - 56px)',
           overflow: styleState.isMobile ? 'visible' : 'auto',
           overflow: styleState.isMobile ? 'visible' : 'auto',
           display: 'flex',
           display: 'flex',
           flexDirection: 'column',
           flexDirection: 'column',