mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 08:20:45 -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]))
|
||||
|
||||
(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
|
||||
|
|
Loading…
Reference in a new issue