Skip to content

Commit

Permalink
fix: center align sidebar icon
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Nov 4, 2024
1 parent 7608a64 commit 73f2d4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/main/frontend/components/container.css
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@

width: 20px;
flex-shrink: 0;
height: 18px;
line-height: 1em;
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/frontend/components/icon.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@
(let [opts' (merge {:size 14} opts)
node-icon (get-node-icon node-entity)]
(when-not (or (string/blank? node-icon) (and (contains? #{"letter-n" "page"} node-icon) (:not-text-or-page? opts)))
[:span.icon-cp-container
[:div.icon-cp-container.flex.items-center
(merge {:style {:color (or (:color node-icon) "inherit")}}
(select-keys opts [:class]))
(select-keys opts [:class]))
(icon node-icon opts')])))

(defn- search-emojis
Expand Down

0 comments on commit 73f2d4b

Please sign in to comment.