mirror of
https://github.com/penpot/penpot.git
synced 2025-06-25 06:47:01 +02: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue