enhance(ux): use dot icon for block node

This commit is contained in:
Tienson Qin
2025-11-12 06:14:42 +08:00
parent 4c6c3322fe
commit 5942c1b988
3 changed files with 4 additions and 4 deletions

View File

@@ -63,7 +63,7 @@
(->>
[(when current-page
{:filter {:group :current-page} :text "Search only current page" :info "Add filter to search" :icon-theme :gray :icon "file"})
{:filter {:group :nodes} :text "Search only nodes" :info "Add filter to search" :icon-theme :gray :icon "letter-n"}
{:filter {:group :nodes} :text "Search only nodes" :info "Add filter to search" :icon-theme :gray :icon "point-filled"}
{:filter {:group :commands} :text "Search only commands" :info "Add filter to search" :icon-theme :gray :icon "command"}
{:filter {:group :files} :text "Search only files" :info "Add filter to search" :icon-theme :gray :icon "file"}
{:filter {:group :themes} :text "Search only themes" :info "Add filter to search" :icon-theme :gray :icon "palette"}]

View File

@@ -65,7 +65,7 @@
(some? first-tag-icon)
first-tag-icon
:else
"letter-n"))))
"point-filled"))))
(defn get-node-icon-cp
[node-entity opts]
@@ -78,7 +78,7 @@
(or (when-let [icon' (get-in node-entity [:block/properties :icon])]
[:span icon'])
node-icon*))]
(when-not (or (string/blank? node-icon) (and (contains? #{"letter-n" "letter-p" "hash" "file"} node-icon) (:not-text-or-page? opts)))
(when-not (or (string/blank? node-icon) (and (contains? #{"point-filled" "letter-p" "hash" "file"} node-icon) (:not-text-or-page? opts)))
[:div.icon-cp-container.flex.items-center
(merge {:style {:color (or (:color node-icon) "inherit")}}
(select-keys opts [:class]))

View File

@@ -210,7 +210,7 @@
:url "link"
:property "letter-p"
:page "page"
:node "letter-n"
:node "point-filled"
"letter-t"))]
(ui/icon icon {:class "opacity-50"
:size 15})))