mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
enhance(ux): use dot icon for block node
This commit is contained in:
@@ -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"}]
|
||||
|
||||
@@ -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]))
|
||||
|
||||
@@ -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})))
|
||||
|
||||
Reference in New Issue
Block a user