From 246ebd8e65c62128bba2ec432384644f22a040c4 Mon Sep 17 00:00:00 2001 From: OpenClaw Bot Date: Sat, 21 Feb 2026 23:13:33 -0600 Subject: [PATCH] Add collapsible sidebar - click chevron to collapse/expand --- components/layout/sidebar.tsx | 162 +++++++++++++++++++++++++--------- 1 file changed, 119 insertions(+), 43 deletions(-) diff --git a/components/layout/sidebar.tsx b/components/layout/sidebar.tsx index af25822..0997332 100644 --- a/components/layout/sidebar.tsx +++ b/components/layout/sidebar.tsx @@ -13,7 +13,8 @@ import { Wrench, Target, Menu, - X, + ChevronLeft, + ChevronRight, } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Sheet, SheetContent, SheetTrigger } from "@/components/ui/sheet"; @@ -32,24 +33,26 @@ const navItems = [ const MISSION_SHORT = "Build an iOS empire → retire on our terms → travel with Heidi → 53 is just the start"; -function SidebarContent({ pathname }: { pathname: string }) { +function SidebarContent({ pathname, collapsed = false }: { pathname: string; collapsed?: boolean }) { return (
-
-
+
+
MC
- Mission Control + {!collapsed && Mission Control}
- {/* Mission Statement */} -
-

- {MISSION_SHORT} -

-
+ {/* Mission Statement - hide when collapsed */} + {!collapsed && ( +
+

+ {MISSION_SHORT} +

+
+ )} -