From 0f0da5fb8f9c463741baadafb92b15b9ffbf52bb Mon Sep 17 00:00:00 2001 From: Carlos Gutierrez Date: Tue, 2 Sep 2025 19:52:01 -0400 Subject: [PATCH] feat: fixing sidebar on mobile --- client/src/components/organisms/Sidebar.tsx | 19 ++++++++++++++++--- .../src/components/templates/MainLayout.tsx | 3 ++- client/src/index.css | 13 ++++++++++++- 3 files changed, 30 insertions(+), 5 deletions(-) diff --git a/client/src/components/organisms/Sidebar.tsx b/client/src/components/organisms/Sidebar.tsx index d894a17..5f0af55 100644 --- a/client/src/components/organisms/Sidebar.tsx +++ b/client/src/components/organisms/Sidebar.tsx @@ -1,4 +1,4 @@ -import { Clock, BarChart3, Settings, Sun, Moon } from "lucide-react"; +import { Clock, BarChart3, Settings, Sun, Moon, X } from "lucide-react"; import { Button } from "@/components/atoms/Button"; import { useTheme } from "@/lib/theme"; import { useStore } from "@/lib/store"; @@ -10,12 +10,14 @@ interface SidebarProps { className?: string; isMobile?: boolean; onNavigate?: () => void; + onClose?: () => void; } export function Sidebar({ className = "", isMobile = false, onNavigate, + onClose, }: SidebarProps) { const { theme, toggleTheme } = useTheme(); const [location] = useLocation(); @@ -44,19 +46,30 @@ export function Sidebar({ return (