0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-16 00:41:25 -05:00

🐛 Fix color names in palette being clipped and not breaking at dot characters

This commit is contained in:
Belén Albeza 2024-05-30 14:31:52 +02:00
parent 06221c37a3
commit de7880b4a2
2 changed files with 6 additions and 1 deletions
frontend/src/app/main/ui/components

View file

@ -44,6 +44,10 @@
(some? image)
(tr "media.image")))))
(defn- breakable-color-title
[title]
(str/replace title "." ".\u200B"))
(mf/defc color-bullet
{::mf/wrap [mf/memo]
::mf/wrap-props false}
@ -112,4 +116,4 @@
:title name
:on-click on-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))))])))

View file

@ -86,6 +86,7 @@
.big-text {
@include inspectValue;
@include twoLineTextEllipsis;
line-height: 1;
color: var(--palette-text-color);
height: $s-28;
text-align: center;