mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 18:36:43 +00:00
enhance: editor experience
1. back to use container id + editing block id instead of block dom ref to decide which block is in editing, to simplify edit-block! and reduce browser gc. 2. set next editing block ahead of receiving the data changes from db worker, so the editor feels a bit faster.
This commit is contained in:
@@ -1217,7 +1217,7 @@
|
||||
(ui/button (ui/icon "square-toggle-horizontal" {:size 14})
|
||||
:on-click #(set-editor-active! (not editor-active?)))
|
||||
(ui/button (ui/icon "source-code" {:size 14})
|
||||
:on-click #(editor-handler/edit-block! block (count content1) (:block/uuid block)))]
|
||||
:on-click #(editor-handler/edit-block! block (count content1)))]
|
||||
(when (fn? render)
|
||||
(js/React.createElement render #js {:content content1}))]]))
|
||||
|
||||
@@ -1449,4 +1449,4 @@
|
||||
[:div.lsp-daemon-container.fixed.z-10
|
||||
(for [{:keys [key _pid render]} rs]
|
||||
(when (fn? render)
|
||||
[:div.lsp-daemon-container-card {:data-key key} (render)]))]))
|
||||
[:div.lsp-daemon-container-card {:data-key key} (render)]))]))
|
||||
|
||||
Reference in New Issue
Block a user