🐛 Fix position of annotation for variants (#7306)

This commit is contained in:
Luis de Dios
2025-09-12 14:05:36 +02:00
committed by GitHub
parent 4dc0f3b4eb
commit 9e2d3b1fa1

View File

@@ -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}