mirror of
https://github.com/penpot/penpot.git
synced 2025-06-02 14:51:37 +02:00
🐛 Fix frame components lost fill when migrated to v2
This commit is contained in:
parent
eeaee5fd13
commit
63e920828b
1 changed files with 5 additions and 4 deletions
|
@ -333,6 +333,7 @@
|
||||||
(if (empty? components)
|
(if (empty? components)
|
||||||
(assoc-in file-data [:options :components-v2] true)
|
(assoc-in file-data [:options :components-v2] true)
|
||||||
(let [grid-gap 50
|
(let [grid-gap 50
|
||||||
|
|
||||||
[file-data page-id start-pos]
|
[file-data page-id start-pos]
|
||||||
(get-or-add-library-page file-data grid-gap)
|
(get-or-add-library-page file-data grid-gap)
|
||||||
|
|
||||||
|
@ -349,7 +350,6 @@
|
||||||
{:main-instance? true
|
{:main-instance? true
|
||||||
:force-frame-id uuid/zero
|
:force-frame-id uuid/zero
|
||||||
:keep-ids? true})
|
:keep-ids? true})
|
||||||
|
|
||||||
add-shapes
|
add-shapes
|
||||||
(fn [page]
|
(fn [page]
|
||||||
(reduce (fn [page shape]
|
(reduce (fn [page shape]
|
||||||
|
@ -394,9 +394,10 @@
|
||||||
root-to-board
|
root-to-board
|
||||||
(fn [shape]
|
(fn [shape]
|
||||||
(cond-> shape
|
(cond-> shape
|
||||||
(and (ctk/instance-root? shape)
|
(and (ctk/instance-head? shape)
|
||||||
(cph/frame-shape? shape))
|
(not (cph/frame-shape? shape)))
|
||||||
(assoc :fills []
|
(assoc :type :frame
|
||||||
|
:fills []
|
||||||
:hide-in-viewer true
|
:hide-in-viewer true
|
||||||
:rx 0
|
:rx 0
|
||||||
:ry 0)))
|
:ry 0)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue