mirror of
https://github.com/penpot/penpot.git
synced 2025-06-09 20:41:37 +02:00
🐛 Set proper shape vertical ordering.
This commit is contained in:
parent
a84080ddfa
commit
4c99280c4a
2 changed files with 3 additions and 3 deletions
|
@ -233,7 +233,7 @@
|
||||||
i/arrow-slide]]
|
i/arrow-slide]]
|
||||||
(when-not collapsed?
|
(when-not collapsed?
|
||||||
[:ul
|
[:ul
|
||||||
(for [[index shape] (reverse shapes)]
|
(for [[index shape] shapes]
|
||||||
[:& layer-item {:shape shape
|
[:& layer-item {:shape shape
|
||||||
:selected selected
|
:selected selected
|
||||||
:index index
|
:index index
|
||||||
|
|
|
@ -154,8 +154,8 @@
|
||||||
(for [item canvas]
|
(for [item canvas]
|
||||||
[:& canvas-wrapper {:shape item
|
[:& canvas-wrapper {:shape item
|
||||||
:key (:id item)
|
:key (:id item)
|
||||||
:childs (get shapes (:id item))}])
|
:childs (reverse (get shapes (:id item)))}])
|
||||||
(for [item (get shapes nil)]
|
(for [item (reverse (get shapes nil))]
|
||||||
[:& shape-wrapper {:shape item
|
[:& shape-wrapper {:shape item
|
||||||
:key (:id item)}])]))
|
:key (:id item)}])]))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue