From 82ae4e60f87fc1f34f6e4df4878086b3d6a12cf0 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Mon, 11 Apr 2022 11:51:52 +0200 Subject: [PATCH] :bug: Texts with center align and fixed width are not shown --- frontend/src/app/main/ui/shapes/text/styles.cljs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/main/ui/shapes/text/styles.cljs b/frontend/src/app/main/ui/shapes/text/styles.cljs index db1f75013a..bfa35f81f2 100644 --- a/frontend/src/app/main/ui/shapes/text/styles.cljs +++ b/frontend/src/app/main/ui/shapes/text/styles.cljs @@ -15,10 +15,11 @@ [cuerdas.core :as str])) (defn generate-root-styles - [_shape node] + [shape node] (let [valign (:vertical-align node "top") - base #js {:height "100%" - :width "100%" + {:keys [width height]} shape + base #js {:height height + :width width :fontFamily "sourcesanspro" :display "flex"}] (cond-> base