enhance(ui): animation for the context menu

This commit is contained in:
charlie
2024-01-09 10:52:33 +08:00
parent d2eae8b3d1
commit bc8d773a70
2 changed files with 2 additions and 7 deletions

View File

@@ -756,11 +756,7 @@
links (state/sub :custom-context-menu/links)
position (state/sub :custom-context-menu/position)]
(when (and show? links position)
(ui/css-transition
{:class-names "fade"
:timeout {:enter 500
:exit 300}}
(render-custom-context-menu links position)))))
(render-custom-context-menu links position))))
(rum/defc new-block-mode < rum/reactive
[]