mirror of https://github.com/logseq/logseq
fix(ui): enable to open in right sidebar when wide screen
parent
9908e91222
commit
00394926ee
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue