diff --git a/packages/client/src/hooks/use-dragable-width.ts b/packages/client/src/hooks/use-dragable-width.ts index d621d13..eda7536 100644 --- a/packages/client/src/hooks/use-dragable-width.ts +++ b/packages/client/src/hooks/use-dragable-width.ts @@ -40,7 +40,9 @@ export const useDragableWidth = () => { useEffect(() => { if (!windowSize.width) return; - toggleCollapsed(windowSize.width <= 765); + if (windowSize.width <= 765) { + toggleCollapsed(true); + } }, [windowSize.width]); return {