0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-11 01:10:28 -05:00

🐛 Set proper shape vertical ordering.

This commit is contained in:
Andrey Antukh 2020-02-25 21:01:42 +01:00
parent a84080ddfa
commit 4c99280c4a
2 changed files with 3 additions and 3 deletions

View file

@ -233,7 +233,7 @@
i/arrow-slide]]
(when-not collapsed?
[:ul
(for [[index shape] (reverse shapes)]
(for [[index shape] shapes]
[:& layer-item {:shape shape
:selected selected
:index index

View file

@ -154,8 +154,8 @@
(for [item canvas]
[:& canvas-wrapper {:shape item
:key (:id item)
:childs (get shapes (:id item))}])
(for [item (get shapes nil)]
:childs (reverse (get shapes (:id item)))}])
(for [item (reverse (get shapes nil))]
[:& shape-wrapper {:shape item
:key (:id item)}])]))