diff --git a/src/renderer/layouts/default-layout/right-sidebar.tsx b/src/renderer/layouts/default-layout/right-sidebar.tsx index f5bd04acb..0b83746e7 100644 --- a/src/renderer/layouts/default-layout/right-sidebar.tsx +++ b/src/renderer/layouts/default-layout/right-sidebar.tsx @@ -11,24 +11,6 @@ import { AppRoute } from '/@/renderer/router/routes'; import { useGeneralSettings, useSidebarStore, useWindowSettings } from '/@/renderer/store'; import { Platform } from '/@/shared/types/types'; -const queueSidebarVariants: Variants = { - closed: (rightWidth) => ({ - transition: { duration: 0.5 }, - width: rightWidth, - x: 1000, - zIndex: 120, - }), - open: (rightWidth) => ({ - transition: { - duration: 0.5, - ease: 'anticipate', - }, - width: rightWidth, - x: 0, - zIndex: 120, - }), -}; - const queueDrawerVariants: Variants = { closed: (windowBarStyle) => ({ height: @@ -78,25 +60,20 @@ export const RightSidebar = forwardRef( ref: Ref, ) => { const { windowBarStyle } = useWindowSettings(); - const { rightExpanded, rightWidth } = useSidebarStore(); + const { rightExpanded } = useSidebarStore(); const { sideQueueType } = useGeneralSettings(); const location = useLocation(); const showSideQueue = rightExpanded && location.pathname !== AppRoute.NOW_PLAYING; return ( - + <> {showSideQueue && ( <> {sideQueueType === 'sideQueue' ? ( - - + ) : ( - - - + + + + + )} )} - + ); }, );