From 85f1f4597e15bdb4c7dcd6aeaddfc1ea9c92e783 Mon Sep 17 00:00:00 2001 From: Mary Kate Fain Date: Thu, 18 Sep 2025 12:21:36 -0500 Subject: [PATCH] fix sidebar collapse button location when settings is open --- src/components/SettingsLayout.tsx | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/components/SettingsLayout.tsx b/src/components/SettingsLayout.tsx index fae67aac..6c5c8f84 100644 --- a/src/components/SettingsLayout.tsx +++ b/src/components/SettingsLayout.tsx @@ -2,7 +2,7 @@ import { useState, useEffect } from 'react'; import { useNavigate, useLocation, Outlet } from 'react-router-dom'; import { Button } from '@/components/ui/button'; import { ScrollArea } from '@/components/ui/scroll-area'; -import { Menu, Columns2, Bot, GitBranch, Database } from 'lucide-react'; +import { Menu, Bot, GitBranch, Database } from 'lucide-react'; import { ProjectSidebar } from '@/components/ProjectSidebar'; import { useProjectsManager } from '@/hooks/useProjectsManager'; import { useIsMobile } from '@/hooks/useIsMobile'; @@ -145,6 +145,7 @@ export function SettingsLayout() { selectedProject={null} onSelectProject={handleProjectSelect} className="h-full" + onToggleSidebar={() => setIsSidebarVisible(false)} /> )} @@ -154,15 +155,17 @@ export function SettingsLayout() { {/* Header with toggle button */}
- + {!isSidebarVisible && ( + + )}

Settings