diff --git a/public/src/pages/Dashboard.tsx b/public/src/pages/Dashboard.tsx
index 1c0bdbb..5a64d60 100644
--- a/public/src/pages/Dashboard.tsx
+++ b/public/src/pages/Dashboard.tsx
@@ -34,19 +34,42 @@ export function Dashboard() {
const [showShareDialog, setShowShareDialog] = useState(false);
const [shareMapId, setShareMapId] = useState
(null);
const [activeLayer, setActiveLayer] = useState('osm');
+ const [isSidebarOpen, setIsSidebarOpen] = useState(false);
const handleShareMap = (mapId: string) => {
setShareMapId(mapId);
setShowShareDialog(true);
};
+ const handleSelectMap = (mapId: string) => {
+ setSelectedMapId(mapId);
+ // Close sidebar on mobile after selecting a map
+ setIsSidebarOpen(false);
+ };
+
return (
-
-
+
setIsSidebarOpen(!isSidebarOpen)} isSidebarOpen={isSidebarOpen}>
+
+ {/* Mobile overlay */}
+ {isSidebarOpen && (
+
setIsSidebarOpen(false)}
+ />
+ )}
+
{/* Left sidebar with map list and toolbar */}
-