0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 16:21:57 -05:00

Render shapes in reversed order.

This commit is contained in:
Andrey Antukh 2016-02-03 17:27:41 +02:00
parent aca9700baf
commit 4bec35869c
2 changed files with 3 additions and 2 deletions

View file

@ -122,7 +122,8 @@
[:g attrs
(for [item (->> items
(map #(get shapes-by-id %))
(remove :hidden))]
(remove :hidden)
(reverse))]
(-> (factory item)
(rum/with-key (str (:id item)))))]))))

View file

@ -163,7 +163,7 @@
[:svg.page-layout {}
(shapes-selection shapes-selected)
[:g.main {}
(for [item (sequence xf (:shapes page))]
(for [item (reverse (sequence xf (:shapes page)))]
(-> (shape item workspace-selected)
(rum/with-key (str (:id item)))))
(selrect)