mirror of
https://github.com/penpot/penpot.git
synced 2026-04-27 12:18:32 +00:00
🐛 When duplicating a main component from the assets tab, the new component should be next to it.
This commit is contained in:
parent
afa7931b0e
commit
e9bd769823
@ -134,7 +134,7 @@
|
||||
|
||||
(let [main-instance-page (ctf/get-component-page library-data component)
|
||||
main-instance-shape (ctf/get-component-root library-data component)
|
||||
position (gpt/point (:x main-instance-shape) (:y main-instance-shape))
|
||||
position (gpt/point (+ (:x main-instance-shape) (:width main-instance-shape) 50) (:y main-instance-shape))
|
||||
options (if components-v2 {:main-instance? true} {})
|
||||
|
||||
[new-instance-shape new-instance-shapes]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user