Skip to content

Commit

Permalink
enhance(ui): animation for the context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
xyhp915 committed Jan 9, 2024
1 parent d2eae8b commit bc8d773
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 1 addition & 5 deletions src/main/frontend/components/container.cljs
Expand Up @@ -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
[]
Expand Down
3 changes: 1 addition & 2 deletions src/main/frontend/components/content.css
Expand Up @@ -12,8 +12,7 @@
}

#custom-context-menu {
@apply transition ease-out duration-100 transform
opacity-100 scale-100 absolute;
@apply absolute animate-in zoom-in-95;

z-index: calc(var(--ls-z-index-level-1) + 1);
width: 270px;
Expand Down

0 comments on commit bc8d773

Please sign in to comment.