mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 23:49:45 -05:00
🐛 Fix unexpected text wrapping on exporting.
This commit is contained in:
parent
df8269bc7f
commit
e9fdd74a99
1 changed files with 2 additions and 1 deletions
|
@ -16,8 +16,9 @@
|
|||
(defn generate-root-styles
|
||||
[shape node]
|
||||
(let [valign (:vertical-align node "top")
|
||||
width (some-> (:width shape) (+ 1))
|
||||
base #js {:height (or (:height shape) "100%")
|
||||
:width (or (:width shape) "100%")}]
|
||||
:width (or width "100%")}]
|
||||
(cond-> base
|
||||
(= valign "top") (obj/set! "justifyContent" "flex-start")
|
||||
(= valign "center") (obj/set! "justifyContent" "center")
|
||||
|
|
Loading…
Add table
Reference in a new issue