Explorar el Código

fix(ui): enable to open in right sidebar when wide screen

charlie hace 3 años
padre
commit
00394926ee
Se han modificado 1 ficheros con 2 adiciones y 3 borrados
  1. 2 3
      src/main/frontend/state.cljs

+ 2 - 3
src/main/frontend/state.cljs

@@ -804,9 +804,8 @@
 
 (defn sidebar-add-block!
   [repo db-id block-type block-data]
-  (when-not (or (util/mobile?)
-            (mobile-util/is-native-platform?))
-   (when db-id
+  (when (not (util/sm-breakpoint?))
+    (when db-id
      (update-state! :sidebar/blocks (fn [blocks]
                                       (->> (remove #(= (second %) db-id) blocks)
                                            (cons [repo db-id block-type block-data])