feat: remove animations from context menu

This commit is contained in:
Antonella Sgarlatta
2021-05-24 10:51:24 -03:00
parent 0a433ff5d4
commit 633add73c9
3 changed files with 9 additions and 6 deletions

View File

@@ -71,7 +71,7 @@ export const NotesOptionsPanel = observer(({ appState }: Props) => {
...position,
maxHeight
}}
className="sn-dropdown max-h-120 max-w-80 flex flex-col py-2 overflow-y-scroll fixed"
className="sn-dropdown sn-dropdown--animated max-h-120 max-w-80 flex flex-col py-2 overflow-y-scroll fixed"
>
{open && (
<NotesOptions

View File

@@ -63,7 +63,7 @@ const SearchOptions = observer(({ appState }: Props) => {
style={{
top: optionsPanelTop,
}}
className="sn-dropdown sn-dropdown-anchor-right absolute grid gap-2 py-2"
className="sn-dropdown sn-dropdown--anchor-right sn-dropdown--animated absolute grid gap-2 py-2"
>
<Switch
className="h-10"

View File

@@ -208,21 +208,24 @@
.sn-dropdown {
@extend .bg-default;
@extend .min-w-80;
@extend .transition-transform;
@extend .duration-150;
@extend .slide-down-animation;
@extend .rounded;
@extend .box-shadow;
z-index: $z-index-dropdown-menu;
&.sn-dropdown-anchor-right {
&.sn-dropdown--anchor-right {
right: 0;
}
&[data-state='collapsed'] {
display: none;
}
&.sn-dropdown--animated {
@extend .transition-transform;
@extend .duration-150;
@extend .slide-down-animation;
}
}
/** Lesser specificity will give priority to reach's styles */