mirror of
https://github.com/penpot/penpot.git
synced 2025-02-10 00:58:26 -05:00
🐛 Fix problem with small with texts
This commit is contained in:
parent
d45bb0ace1
commit
93b582c385
1 changed files with 5 additions and 6 deletions
|
@ -21,7 +21,7 @@
|
|||
:width width
|
||||
:fontFamily "sourcesanspro"
|
||||
:display "flex"
|
||||
:whiteSpace "pre-wrap"}]
|
||||
:whiteSpace "break-spaces"}]
|
||||
(cond-> base
|
||||
(= valign "top") (obj/set! "alignItems" "flex-start")
|
||||
(= valign "center") (obj/set! "alignItems" "center")
|
||||
|
@ -83,7 +83,9 @@
|
|||
:lineHeight (or line-height "1.2")
|
||||
:color (if show-text? text-color "transparent")
|
||||
:caretColor (or text-color "black")
|
||||
:overflowWrap "initial"}
|
||||
:overflowWrap "initial"
|
||||
:lineBreak "auto"
|
||||
:whiteSpace "break-spaces"}
|
||||
|
||||
fills
|
||||
(cond
|
||||
|
@ -126,7 +128,4 @@
|
|||
(obj/set! "fontWeight" font-weight))
|
||||
|
||||
(= grow-type :auto-width)
|
||||
(obj/set! "whiteSpace" "pre")
|
||||
|
||||
(not= grow-type :auto-width)
|
||||
(obj/set! "whiteSpace" "pre-wrap")))))
|
||||
(obj/set! "whiteSpace" "pre")))))
|
||||
|
|
Loading…
Add table
Reference in a new issue