0
Fork 0
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:
Andrey Antukh 2021-08-31 12:08:44 +02:00 committed by Alonso Torres
parent df8269bc7f
commit e9fdd74a99

View file

@ -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")