Browse Source

improve sidebar collapsing behavior

Yuki Takei 4 years ago
parent
commit
ed8f78d93f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/app/src/components/Sidebar.tsx

+ 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');