瀏覽代碼

fix(iPhone8): remove extra top padding

leizhe 3 年之前
父節點
當前提交
691fcf3659
共有 1 個文件被更改,包括 1 次插入8 次删除
  1. 1 8
      src/main/frontend/components/header.css

+ 1 - 8
src/main/frontend/components/header.css

@@ -209,6 +209,7 @@ html.is-native-ipad {
 
     #main-content-container {
         padding-top: 0px;
+        height: calc(100vh - var(--ls-headbar-height));
     }
     
     .cp__header > .r {
@@ -290,10 +291,6 @@ html.is-native-iphone-without-notch {
     --ls-headbar-inner-top-padding: 15px;
     --ls-headbar-height: 2.5rem;
 
-    #main-container {
-        padding-top: 55px;
-    }
-
     @media (orientation: landscape) {
 
         --ls-headbar-inner-top-padding: 0px;
@@ -302,9 +299,5 @@ html.is-native-iphone-without-notch {
         .cp__header {
             @apply shadow z-10;
         }
-
-        #main-container {
-            padding-top: 40px;
-        }
     }
 }