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:
parent
aca9700baf
commit
4bec35869c
2 changed files with 3 additions and 2 deletions
|
@ -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)))))]))))
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue