From c648ce8fa7b4b7626efb69878769ff8304096869 Mon Sep 17 00:00:00 2001 From: Joy Jasper <0x73757375@gmail.com> Date: Thu, 2 Apr 2026 21:53:10 +0800 Subject: [PATCH] ui: improve sidebar layout and fixed-height app container --- client/src/components/layout/AppLayout.tsx | 4 +-- client/src/components/layout/Sidebar.tsx | 41 +++++++++++++--------- 2 files changed, 26 insertions(+), 19 deletions(-) diff --git a/client/src/components/layout/AppLayout.tsx b/client/src/components/layout/AppLayout.tsx index 90c94bb..74ad327 100644 --- a/client/src/components/layout/AppLayout.tsx +++ b/client/src/components/layout/AppLayout.tsx @@ -18,9 +18,9 @@ export default function AppLayout() { }, [isSidebarCollapsed]); return ( -
+
-
+
setIsSidebarCollapsed((current) => !current)} diff --git a/client/src/components/layout/Sidebar.tsx b/client/src/components/layout/Sidebar.tsx index 9292e80..e583e02 100644 --- a/client/src/components/layout/Sidebar.tsx +++ b/client/src/components/layout/Sidebar.tsx @@ -143,25 +143,26 @@ export default function Sidebar({ collapsed, onToggle }: SidebarProps) { return (