Explorar o código

improve sidebar collapsing behavior

Yuki Takei %!s(int64=4) %!d(string=hai) anos
pai
achega
ed8f78d93f
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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');