mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 01:01:39 +02:00
🐛 Display animations only for allowed actions
This commit is contained in:
parent
7385445aa8
commit
b4c23f3554
1 changed files with 86 additions and 84 deletions
|
@ -433,6 +433,8 @@
|
|||
[:label {:for (str "background-" index)}
|
||||
(tr "workspace.options.interaction-background")]]]])
|
||||
|
||||
(when (cti/has-animation? interaction)
|
||||
[:*
|
||||
; Animation select
|
||||
[:div.interactions-element.separator
|
||||
[:span.element-set-subtitle.wide (tr "workspace.options.interaction-animation")]
|
||||
|
@ -521,7 +523,7 @@
|
|||
:checked (-> interaction :animation :offset-effect)
|
||||
:on-change change-offset-effect}]
|
||||
[:label {:for (str "offset-effect-" index)}
|
||||
(tr "workspace.options.interaction-offset-effect")]]])])]]))
|
||||
(tr "workspace.options.interaction-offset-effect")]]])])])]]))
|
||||
|
||||
(mf/defc interactions-menu
|
||||
[{:keys [shape] :as props}]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue