From e9bd769823d4843551fcf19dd79b4a24e9a8f3cf Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Thu, 21 Sep 2023 11:44:29 +0200 Subject: [PATCH] :bug: When duplicating a main component from the assets tab, the new component should be next to it. --- frontend/src/app/main/data/workspace/libraries_helpers.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/main/data/workspace/libraries_helpers.cljs b/frontend/src/app/main/data/workspace/libraries_helpers.cljs index bedb73d290..43fbe83fa8 100644 --- a/frontend/src/app/main/data/workspace/libraries_helpers.cljs +++ b/frontend/src/app/main/data/workspace/libraries_helpers.cljs @@ -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]