0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 15:39:50 -05:00

🐛 Texts with center align and fixed width are not shown

This commit is contained in:
Alejandro Alonso 2022-04-11 11:51:52 +02:00 committed by Andrés Moya
parent 5fc27a7594
commit 82ae4e60f8

View file

@ -15,10 +15,11 @@
[cuerdas.core :as str])) [cuerdas.core :as str]))
(defn generate-root-styles (defn generate-root-styles
[_shape node] [shape node]
(let [valign (:vertical-align node "top") (let [valign (:vertical-align node "top")
base #js {:height "100%" {:keys [width height]} shape
:width "100%" base #js {:height height
:width width
:fontFamily "sourcesanspro" :fontFamily "sourcesanspro"
:display "flex"}] :display "flex"}]
(cond-> base (cond-> base