mirror of
https://github.com/penpot/penpot.git
synced 2025-05-08 23:25:53 +02: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-text {
|
||||||
color: $color-gray-20;
|
color: $color-gray-20;
|
||||||
font-size: $fs12;
|
font-size: $fs12;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
width: 66px;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
&.current {
|
&.current {
|
||||||
.color {
|
.color {
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
:key (or (str (:id color)) (:value color))
|
:key (or (str (:id color)) (:value color))
|
||||||
:on-click select-color}
|
:on-click select-color}
|
||||||
[:span.color {:style {:background (:value 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
|
(mf/defc palette
|
||||||
[{:keys [left-sidebar? current-colors recent-colors file-colors shared-libs selected size]}]
|
[{:keys [left-sidebar? current-colors recent-colors file-colors shared-libs selected size]}]
|
||||||
|
|
Loading…
Add table
Reference in a new issue