瀏覽代碼

enhance(mobile): depth sheet view layout

charlie 3 月之前
父節點
當前提交
4c6cf5c018
共有 1 個文件被更改,包括 11 次插入1 次删除
  1. 11 1
      src/main/mobile/components/app.css

+ 11 - 1
src/main/mobile/components/app.css

@@ -7,6 +7,7 @@
   --ls-page-title-size: 26px;
   --ls-page-title-size: 26px;
   --silk-topbar-inner-height: 32px;
   --silk-topbar-inner-height: 32px;
   --silk-tabbar-bottom-paddding: 12px;
   --silk-tabbar-bottom-paddding: 12px;
+  --silk-100-lvh-dvh-pct: max(100%,100vh);
 }
 }
 
 
 html.is-native-ios {
 html.is-native-ios {
@@ -77,7 +78,11 @@ html {
 body {
 body {
   @apply relative overflow-hidden;
   @apply relative overflow-hidden;
 
 
-  .SheetWithDepth-stackSceneryContainer, > .SheetWithDepth-view {
+  .SheetWithDepth-stackSceneryContainer {
+    @apply overflow-hidden;
+  }
+
+  .SheetWithDepth-stackSceneryContainer > .SheetWithDepth-view {
     height: var(--ls-full-screen-height, "auto");
     height: var(--ls-full-screen-height, "auto");
   }
   }
 }
 }
@@ -300,6 +305,11 @@ a, button {
 }
 }
 
 
 /* silk styles */
 /* silk styles */
+.app-silk-index-scroll-view {
+  /* NOTE: fix for the depth sheet view style? */
+  padding-top: 2px;
+}
+
 .app-silk-index-scroll-content {
 .app-silk-index-scroll-content {
   @apply bg-gray-01 min-h-[100svh] overflow-x-hidden;
   @apply bg-gray-01 min-h-[100svh] overflow-x-hidden;
 }
 }