mirror of
https://github.com/penpot/penpot.git
synced 2026-09-13 23:48:42 +00:00
🐛 Fix color names in palette being clipped and not breaking at dot characters
This commit is contained in:
parent
06221c37a3
commit
de7880b4a2
@ -44,6 +44,10 @@
|
|||||||
(some? image)
|
(some? image)
|
||||||
(tr "media.image")))))
|
(tr "media.image")))))
|
||||||
|
|
||||||
|
(defn- breakable-color-title
|
||||||
|
[title]
|
||||||
|
(str/replace title "." ".\u200B"))
|
||||||
|
|
||||||
(mf/defc color-bullet
|
(mf/defc color-bullet
|
||||||
{::mf/wrap [mf/memo]
|
{::mf/wrap [mf/memo]
|
||||||
::mf/wrap-props false}
|
::mf/wrap-props false}
|
||||||
@ -112,4 +116,4 @@
|
|||||||
:title name
|
:title name
|
||||||
:on-click on-click
|
:on-click on-click
|
||||||
:on-double-click on-double-click}
|
:on-double-click on-double-click}
|
||||||
(or name color (uc/gradient-type->string (:type gradient)))])))
|
(breakable-color-title (or name color (uc/gradient-type->string (:type gradient))))])))
|
||||||
|
|||||||
@ -86,6 +86,7 @@
|
|||||||
.big-text {
|
.big-text {
|
||||||
@include inspectValue;
|
@include inspectValue;
|
||||||
@include twoLineTextEllipsis;
|
@include twoLineTextEllipsis;
|
||||||
|
line-height: 1;
|
||||||
color: var(--palette-text-color);
|
color: var(--palette-text-color);
|
||||||
height: $s-28;
|
height: $s-28;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user