Browse Source

enhance(ux): use dot icon for block node

Tienson Qin 3 weeks ago
parent
commit
5942c1b988

+ 1 - 1
src/main/frontend/components/cmdk/core.cljs

@@ -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"}]

+ 2 - 2
src/main/frontend/components/icon.cljs

@@ -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]))

+ 1 - 1
src/main/frontend/components/property.cljs

@@ -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})))