Sfoglia il codice sorgente

improve sidebar collapsing behavior

Yuki Takei 4 anni fa
parent
commit
ed8f78d93f
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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 {
     else {
       const newWidth = resizableContainer.current.clientWidth;
       const newWidth = resizableContainer.current.clientWidth;
+      mutateSidebarCollapsed(false);
       mutateProductNavWidth(newWidth, false);
       mutateProductNavWidth(newWidth, false);
-      scheduleToPutUserUISettings({ currentProductNavWidth: newWidth });
+      scheduleToPutUserUISettings({ isSidebarCollapsed: false, currentProductNavWidth: newWidth });
     }
     }
 
 
     resizableContainer.current.classList.remove('dragging');
     resizableContainer.current.classList.remove('dragging');