mirror of
https://github.com/penpot/penpot.git
synced 2025-03-11 23:31:21 -05:00
🐛 Fix broken layout and layout-gap props on migrating to comp-v2
This commit is contained in:
parent
3d84270f50
commit
ba3c42e62c
1 changed files with 10 additions and 1 deletions
|
@ -129,7 +129,16 @@
|
|||
(if (or (= gap ##Inf)
|
||||
(= gap ##-Inf))
|
||||
0
|
||||
gap)))))
|
||||
gap)))
|
||||
|
||||
;; Fix some broken layout related attrs, probably
|
||||
;; of copypaste on flex layout betatest period
|
||||
(true? (:layout shape))
|
||||
(assoc :layout :flex)
|
||||
|
||||
(number? (:layout-gap shape))
|
||||
(as-> shape (let [n (:layout-gap shape)]
|
||||
(assoc shape :layout-gap {:row-gap n :column-gap n})))))
|
||||
|
||||
update-container
|
||||
(fn [container]
|
||||
|
|
Loading…
Add table
Reference in a new issue