From 53f3758d2ad3be971303f2c95153a3b142019acd Mon Sep 17 00:00:00 2001 From: jeffvli Date: Fri, 13 Jan 2023 01:53:34 -0800 Subject: [PATCH] Set static width for drawer queue --- src/renderer/layouts/default-layout.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/renderer/layouts/default-layout.tsx b/src/renderer/layouts/default-layout.tsx index 33eb59f8..65a0379d 100644 --- a/src/renderer/layouts/default-layout.tsx +++ b/src/renderer/layouts/default-layout.tsx @@ -163,8 +163,6 @@ export const DefaultLayout = ({ shell }: DefaultLayoutProps) => { const queueDrawerVariants: Variants = { closed: { height: 'calc(100vh - 170px)', - maxWidth: '600px', - minWidth: '400px', position: 'absolute', right: 0, top: '75px', @@ -172,18 +170,16 @@ export const DefaultLayout = ({ shell }: DefaultLayoutProps) => { duration: 0.4, ease: 'anticipate', }, - width: '30vw', + width: '450px', x: '50vw', }, open: { boxShadow: '1px 1px 10px 5px rgba(0, 0, 0, 0.3)', height: 'calc(100vh - 170px)', - maxWidth: '600px', - minWidth: '400px', position: 'absolute', right: '20px', - top: '75px', + transition: { damping: 10, delay: 0, @@ -191,7 +187,7 @@ export const DefaultLayout = ({ shell }: DefaultLayoutProps) => { ease: 'anticipate', mass: 0.5, }, - width: '30vw', + width: '450px', x: 0, zIndex: 120, },