瀏覽代碼

scrollbar: fix side menu on mobile devices

Alexander Zobnin 7 年之前
父節點
當前提交
3fcd262711
共有 1 個文件被更改,包括 11 次插入1 次删除
  1. 11 1
      public/sass/components/_scrollbar.scss

+ 11 - 1
public/sass/components/_scrollbar.scss

@@ -192,7 +192,17 @@
 
 
   // Width needs to be set to prevent content width issues
   // Width needs to be set to prevent content width issues
   // Set to 99% instead of 100% for fixing Firefox issue (white stripe on the right of scrollbar)
   // Set to 99% instead of 100% for fixing Firefox issue (white stripe on the right of scrollbar)
-  width: 99%;
+  min-width: 99%;
+}
+
+// Fix for side menu on mobile devices
+.sidemenu-open.sidemenu-open--xs {
+  .main-view.baron {
+    min-width: 0%;
+  }
+}
+.main-view.baron {
+  min-width: 99%;
 }
 }
 
 
 .baron__clipper {
 .baron__clipper {