Skip to content

Commit 5942c1b

Browse files
committed
enhance(ux): use dot icon for block node
1 parent 4c6c332 commit 5942c1b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/main/frontend/components/cmdk/core.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
(->>
6464
[(when current-page
6565
{:filter {:group :current-page} :text "Search only current page" :info "Add filter to search" :icon-theme :gray :icon "file"})
66-
{:filter {:group :nodes} :text "Search only nodes" :info "Add filter to search" :icon-theme :gray :icon "letter-n"}
66+
{:filter {:group :nodes} :text "Search only nodes" :info "Add filter to search" :icon-theme :gray :icon "point-filled"}
6767
{:filter {:group :commands} :text "Search only commands" :info "Add filter to search" :icon-theme :gray :icon "command"}
6868
{:filter {:group :files} :text "Search only files" :info "Add filter to search" :icon-theme :gray :icon "file"}
6969
{:filter {:group :themes} :text "Search only themes" :info "Add filter to search" :icon-theme :gray :icon "palette"}]

src/main/frontend/components/icon.cljs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
(some? first-tag-icon)
6666
first-tag-icon
6767
:else
68-
"letter-n"))))
68+
"point-filled"))))
6969

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

src/main/frontend/components/property.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210
:url "link"
211211
:property "letter-p"
212212
:page "page"
213-
:node "letter-n"
213+
:node "point-filled"
214214
"letter-t"))]
215215
(ui/icon icon {:class "opacity-50"
216216
:size 15})))

0 commit comments

Comments
 (0)