mirror of
https://github.com/penpot/penpot.git
synced 2026-04-28 12:48:31 +00:00
🐛 Fix position of annotation for variants (#7306)
This commit is contained in:
parent
4dc0f3b4eb
commit
9e2d3b1fa1
@ -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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user