From e9fdd74a99594c21f32fd10ee84645bff509f01e Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 31 Aug 2021 12:08:44 +0200 Subject: [PATCH] :bug: Fix unexpected text wrapping on exporting. --- frontend/src/app/main/ui/shapes/text/styles.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/shapes/text/styles.cljs b/frontend/src/app/main/ui/shapes/text/styles.cljs index ec76c8f610..2dca984ef2 100644 --- a/frontend/src/app/main/ui/shapes/text/styles.cljs +++ b/frontend/src/app/main/ui/shapes/text/styles.cljs @@ -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")