enhance(ux): popup active state for the menu items

This commit is contained in:
charlie
2025-02-27 15:58:32 +08:00
parent 9a95448014
commit b669814a1b
2 changed files with 3 additions and 7 deletions

View File

@@ -370,10 +370,7 @@
(for [page pages]
[:li.recent-item.select-none.font-medium
{:key (str "recent-" (:db/id page))
:title (block-handler/block-unique-title page)
:draggable true
:on-drag-start (fn [event] (editor-handler/block->data-transfer! (:block/name page) event true))
:data-ref (str name)}
:title (block-handler/block-unique-title page)}
(page-name page (icon/get-node-icon-cp page {:size 16}) true)])])))
(defn get-default-home-if-valid