Skip to content

Commit

Permalink
fix(ui): polish icons
Browse files Browse the repository at this point in the history
  • Loading branch information
xyhp915 committed Nov 25, 2022
1 parent 47b5418 commit c3ac051
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/main/frontend/components/reference.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
[:div.ls-filters.filters
[:div.sm:flex.sm:items-start
[:div.mx-auto.flex-shrink-0.flex.items-center.justify-center.h-12.w-12.rounded-full.bg-gray-200.text-gray-500.sm:mx-0.sm:h-10.sm:w-10
(ui/icon "filter" {:style {:fontSize 20}})]
(ui/icon "filter" {:size 20})]
[:div.mt-3.text-center.sm:mt-0.sm:ml-4.sm:text-left.pb-2
[:h3#modal-headline.text-lg.leading-6.font-medium "Filter"]
[:span.text-xs
Expand Down Expand Up @@ -146,14 +146,14 @@
{:center? true}))}
(ui/icon "filter" {:class (cond
(empty? filter-state)
""
"opacity-60 hover:opacity-100"
(every? true? (vals filter-state))
"text-success"
(every? false? (vals filter-state))
"text-error"
:else
"text-warning")
:style {:fontSize 24}})]]
:size 22})]]

(fn []
(references-inner page-name filters filtered-ref-blocks))
Expand Down
2 changes: 1 addition & 1 deletion src/main/frontend/components/right_sidebar.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
[:button.button.icon.toggle-right-sidebar
{:title "Toggle right sidebar"
:on-click ui-handler/toggle-right-sidebar!}
(ui/icon "layout-sidebar-right" {:style {:fontSize "20px"}})])))
(ui/icon "layout-sidebar-right" {:size 20})])))

(rum/defc block-cp < rum/reactive
[repo idx block]
Expand Down

0 comments on commit c3ac051

Please sign in to comment.