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:
parent
5fc27a7594
commit
82ae4e60f8
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue