From 9e2d3b1fa1bc1a8da72024a173b3a6dd6fe17a92 Mon Sep 17 00:00:00 2001 From: Luis de Dios Date: Fri, 12 Sep 2025 14:05:36 +0200 Subject: [PATCH] :bug: Fix position of annotation for variants (#7306) --- .../workspace/sidebar/options/menus/component.cljs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/menus/component.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/menus/component.cljs index 6cc9da2aa8..087f62e74a 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/menus/component.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/menus/component.cljs @@ -1016,12 +1016,6 @@ (when swap-opened? [:> component-swap* {:shapes copies}]) - (when (and (not swap-opened?) (not multi)) - [:> component-annotation* {:id id - :shape shape - :component component - :rerender-fn rerender-fn}]) - (when (and is-variant? (not main-instance?) (not (:deleted component)) @@ -1037,6 +1031,12 @@ :shapes shapes :data data}]) + (when (and (not swap-opened?) (not multi)) + [:> component-annotation* {:id id + :shape shape + :component component + :rerender-fn rerender-fn}]) + (when (and multi all-main? (not any-variant?)) [:button {:class (stl/css :combine-variant-button) :on-click on-combine-as-variants}