mirror of
https://github.com/penpot/penpot.git
synced 2026-02-12 22:53:02 +00:00
🐛 Fix position of annotation for variants (#7306)
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user