mirror of
https://github.com/penpot/penpot.git
synced 2026-02-13 23:23:10 +00:00
🐛 Fix broken layout and layout-gap props on migrating to comp-v2
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user