mirror of
https://github.com/penpot/penpot.git
synced 2025-06-05 08:51:38 +02:00
🐛 Fix problem when resizing texts inside groups
This commit is contained in:
parent
6334520c66
commit
51ea354bcb
5 changed files with 250 additions and 150 deletions
|
@ -14,11 +14,10 @@
|
|||
[cuerdas.core :as str]))
|
||||
|
||||
(defn generate-root-styles
|
||||
[shape node]
|
||||
[_shape node]
|
||||
(let [valign (:vertical-align node "top")
|
||||
width (some-> (:width shape) (+ 1))
|
||||
base #js {:height (or (:height shape) "100%")
|
||||
:width (or width "100%")
|
||||
base #js {:height "100%"
|
||||
:width "100%"
|
||||
:fontFamily "sourcesanspro"}]
|
||||
(cond-> base
|
||||
(= valign "top") (obj/set! "justifyContent" "flex-start")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue