diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index 2f1aeba..c9835ec 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -37,7 +37,7 @@ const Layout = ({ children }: LayoutProps) => { setIsMounted(true); }, []); - // Schließe das Menü nur beim Routenwechsel + // Schließe das Menü beim Routenwechsel useEffect(() => { setIsMenuOpen(false); }, [location.pathname, setIsMenuOpen]); @@ -198,8 +198,18 @@ const Layout = ({ children }: LayoutProps) => { transition={{ type: "spring", stiffness: 300, damping: 30 }} className="fixed right-0 top-0 h-full w-80 bg-zinc-900 shadow-xl md:hidden z-50 border-l border-zinc-800" > - {/* Header-Spacer */} -
+ {/* Sidebar Header mit Close-Button */} +