2
0
Эх сурвалжийг харах

improve sidebar collapsing behavior

Yuki Takei 4 жил өмнө
parent
commit
ed8f78d93f

+ 2 - 1
packages/app/src/components/Sidebar.tsx

@@ -250,8 +250,9 @@ const Sidebar: FC<Props> = (props: Props) => {
     }
     else {
       const newWidth = resizableContainer.current.clientWidth;
+      mutateSidebarCollapsed(false);
       mutateProductNavWidth(newWidth, false);
-      scheduleToPutUserUISettings({ currentProductNavWidth: newWidth });
+      scheduleToPutUserUISettings({ isSidebarCollapsed: false, currentProductNavWidth: newWidth });
     }
 
     resizableContainer.current.classList.remove('dragging');