feat: remove animations from context menu
This commit is contained in:
@@ -71,7 +71,7 @@ export const NotesOptionsPanel = observer(({ appState }: Props) => {
|
|||||||
...position,
|
...position,
|
||||||
maxHeight
|
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 && (
|
{open && (
|
||||||
<NotesOptions
|
<NotesOptions
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ const SearchOptions = observer(({ appState }: Props) => {
|
|||||||
style={{
|
style={{
|
||||||
top: optionsPanelTop,
|
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
|
<Switch
|
||||||
className="h-10"
|
className="h-10"
|
||||||
|
|||||||
@@ -208,21 +208,24 @@
|
|||||||
.sn-dropdown {
|
.sn-dropdown {
|
||||||
@extend .bg-default;
|
@extend .bg-default;
|
||||||
@extend .min-w-80;
|
@extend .min-w-80;
|
||||||
@extend .transition-transform;
|
|
||||||
@extend .duration-150;
|
|
||||||
@extend .slide-down-animation;
|
|
||||||
@extend .rounded;
|
@extend .rounded;
|
||||||
@extend .box-shadow;
|
@extend .box-shadow;
|
||||||
|
|
||||||
z-index: $z-index-dropdown-menu;
|
z-index: $z-index-dropdown-menu;
|
||||||
|
|
||||||
&.sn-dropdown-anchor-right {
|
&.sn-dropdown--anchor-right {
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&[data-state='collapsed'] {
|
&[data-state='collapsed'] {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.sn-dropdown--animated {
|
||||||
|
@extend .transition-transform;
|
||||||
|
@extend .duration-150;
|
||||||
|
@extend .slide-down-animation;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Lesser specificity will give priority to reach's styles */
|
/** Lesser specificity will give priority to reach's styles */
|
||||||
|
|||||||
Reference in New Issue
Block a user