Sfoglia il codice sorgente

fix: 滚动条不显示

wjc 6 giorni fa
parent
commit
bf6dbc9566

+ 13 - 3
src/assets/css/theme.scss

@@ -22,7 +22,7 @@ $gap-padding: halfW(8);
   --content-bg: #0c1425;
   --primary: #007bd3;
   --page-bg: #070d19;
-  
+
   --radius: 4px;
 
   scrollbar-width: none; /* firefox */
@@ -31,8 +31,18 @@ $gap-padding: halfW(8);
   overflow-y: auto;
 }
 
-:root::-webkit-scrollbar {
-  display: none; /* Chrome Safari */
+:root {
+  ::-webkit-scrollbar {
+    display: none;
+  }
+
+  ::-webkit-scrollbar-track {
+    display: none;
+  }
+
+  ::-webkit-scrollbar-thumb {
+    display: none;
+  }
 }
 
 .title-icon {

+ 0 - 14
src/views/hui-jia/components/implementary/ing.vue

@@ -104,20 +104,6 @@
 <style lang="scss" scoped>
   @import "@/assets/css/theme.scss";
 
-  :root {
-    ::-webkit-scrollbar {
-      width: 0;
-    }
-
-    ::-webkit-scrollbar-track {
-      width: 0;
-    }
-
-    ::-webkit-scrollbar-thumb {
-      width: 0;
-    }
-  }
-
   .implementing-container {
     background: var(--content-bg);
     border-radius: var(--radius);