🐛 Fixes small problem with palette styles

This commit is contained in:
alonso.torres 2020-09-23 13:07:42 +02:00
parent 380f069822
commit d5545fadaf
2 changed files with 6 additions and 1 deletions

View file

@ -63,7 +63,7 @@
:key (or (str (:id color)) (:value color))
:on-click select-color}
[:span.color {:style {:background (:value color)}}]
(when (= size :big) [:span.color-text (or (:name color) (:value color))])]))
(when (= size :big) [:span.color-text {:title (:name color) } (or (:name color) (:value color))])]))
(mf/defc palette
[{:keys [left-sidebar? current-colors recent-colors file-colors shared-libs selected size]}]