mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 23:18:48 -05:00
🐛 Fixes small problem with palette styles
This commit is contained in:
parent
380f069822
commit
d5545fadaf
2 changed files with 6 additions and 1 deletions
|
@ -179,6 +179,11 @@
|
|||
.color-text {
|
||||
color: $color-gray-20;
|
||||
font-size: $fs12;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
width: 66px;
|
||||
text-align: center;
|
||||
}
|
||||
&.current {
|
||||
.color {
|
||||
|
|
|
@ -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]}]
|
||||
|
|
Loading…
Add table
Reference in a new issue