Преглед на файлове

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

charlie преди 3 години
родител
ревизия
00394926ee
променени са 1 файла, в които са добавени 2 реда и са изтрити 3 реда
  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])