mirror of
https://github.com/penpot/penpot.git
synced 2026-04-29 05:08:08 +00:00
Render shapes in reversed order.
This commit is contained in:
parent
aca9700baf
commit
4bec35869c
@ -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…
x
Reference in New Issue
Block a user