Procházet zdrojové kódy

improve sidebar collapsing behavior

Yuki Takei před 4 roky
rodič
revize
ed8f78d93f
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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');