0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -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]))
(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