mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 18:36:43 +00:00
Feat/moveable plugin UI container (#3045)
* improve(plugin): add container for main ui frame * feat(plugin): support draggable & resizable UI container for main ui * feat: support fork sub layout container * improve(plugin): add editor selection api * improve(plugin): click outside configure for float container * improve(plugin): api of journal for create-page * improve(plugin): api of open-in-right-sidebar * improve(plugin): add full screen api * improve(plugin): api of register-palette-command * improve(plugin): add apis
This commit is contained in:
@@ -151,11 +151,12 @@
|
||||
[block-id]
|
||||
(when block-id
|
||||
(when-let [block (db/pull [:block/uuid block-id])]
|
||||
(state/sidebar-add-block!
|
||||
(state/get-current-repo)
|
||||
(:db/id block)
|
||||
:block
|
||||
block))))
|
||||
(let [page? (nil? (:block/page block))]
|
||||
(state/sidebar-add-block!
|
||||
(state/get-current-repo)
|
||||
(:db/id block)
|
||||
(if page? :page :block)
|
||||
block)))))
|
||||
|
||||
(defn reset-cursor-range!
|
||||
[node]
|
||||
|
||||
Reference in New Issue
Block a user