enhance: hide action bar after pressing arrows

This commit is contained in:
Tienson Qin
2025-03-13 09:52:32 +08:00
parent 48c23385fc
commit e65d606417
2 changed files with 4 additions and 4 deletions

View File

@@ -1625,10 +1625,8 @@
(set-loading! false))))))
[])
(if loading?
[:div.flex.flex-col.space-2.gap-2
(shui/skeleton {:class "h-6 w-full"})
[:div.flex.flex-col.space-2.gap-2
(repeat 25 (shui/skeleton {:class "h-6 w-full"}))]]
[:div.flex.flex-col.space-2.gap-2.my-2
(repeat 25 (shui/skeleton {:class "h-6 w-full"}))]
(view-container view-entity (assoc option
:items-count items-count
:views views

View File

@@ -1827,6 +1827,7 @@
[up?]
(fn [event]
(util/stop event)
(state/pub-event! [:editor/hide-action-bar])
(let [edit-block-id (:block/uuid (state/get-edit-block))
move-nodes (fn [blocks]
(let [blocks' (block-handler/get-top-level-blocks blocks)
@@ -2972,6 +2973,7 @@
(state/selection?)
(do
(util/stop e)
(state/pub-event! [:editor/hide-action-bar])
(on-tab direction)))
nil))