Procházet zdrojové kódy

improve(mobile): WIP refactor left sidebar

charlie před 3 roky
rodič
revize
2ce7dffe36

+ 2 - 2
src/main/frontend/components/sidebar.cljs

@@ -447,10 +447,10 @@
       (fn []
         (when touch-pending?
           (cond
-            (and (not left-sidebar-open?) (> touching-x-offset 120))
+            (and (not left-sidebar-open?) (> touching-x-offset 40))
             (state/set-left-sidebar-open! true)
 
-            (and left-sidebar-open? (< touching-x-offset -50))
+            (and left-sidebar-open? (< touching-x-offset -30))
             (reset! *close-signal (inc @*close-signal))))
         (reset! *touch-state nil))}
 

+ 1 - 1
src/main/frontend/components/sidebar.css

@@ -348,7 +348,7 @@
   }
 
   > .shade-mask {
-    background-color: rgba(0, 0, 0, .6);
+    background-color: rgba(0, 0, 0, .7);
     position: absolute;
     top: 0;
     left: 0;