From b75de8b5e6f800ebcd657aefc5a4675c93d769bb Mon Sep 17 00:00:00 2001 From: m4 Date: Tue, 11 Aug 2026 07:22:20 +0800 Subject: [PATCH] Revert "feat(webui): pin sidebar collapse button to the resize divider" This reverts commit adc59ba. The divider-mounted tab broke the header's visual consistency; the collapse toggle stays in the top header. --- src/app/page.tsx | 75 +++++++++++---------------------- src/components/ui/resizable.tsx | 2 - 2 files changed, 25 insertions(+), 52 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 904a706..cc7e0bd 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -315,36 +315,30 @@ function HomePageInner({ authEnabled }: HomePageInnerProps) { )}
- {/* On desktop the expanded sidebar's collapse button lives on the - resize handle (it tracks the divider as the panel is resized); - the header keeps the toggle only for the collapsed and mobile - (overlay) states. */} - {(!sidebar || isDesktopLayout === false) && ( - - )} + {!sidebar && ( - + )} diff --git a/src/components/ui/resizable.tsx b/src/components/ui/resizable.tsx index 0000bf3..c0929f4 100644 --- a/src/components/ui/resizable.tsx +++ b/src/components/ui/resizable.tsx @@ -23,7 +23,6 @@ const ResizablePanel = ResizablePrimitive.Panel; const ResizableHandle = ({ withHandle, className, - children, ...props }: React.ComponentProps & { withHandle?: boolean; @@ -40,7 +39,6 @@ const ResizableHandle = ({
)} - {children} );