From ecaa65fdf5f0ca2ce1c8d46c6c5f696e74baacdf Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Tue, 20 May 2025 20:02:46 +0000 Subject: [PATCH] Fix: Sidebar overlapping content Adjust the sidebar's positioning to prevent it from overlapping content on the screen. --- src/components/layout/Layout.tsx | 8 +++++--- src/components/layout/Sidebar.tsx | 5 ++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/layout/Layout.tsx b/src/components/layout/Layout.tsx index 2e554e1..b77ece5 100644 --- a/src/components/layout/Layout.tsx +++ b/src/components/layout/Layout.tsx @@ -38,7 +38,7 @@ const Layout: React.FC = ({ children }) => { {isMobile ? ( - @@ -48,11 +48,13 @@ const Layout: React.FC = ({ children }) => { ) : ( - {}} /> +
+ {}} /> +
)}
-
+
{children}
diff --git a/src/components/layout/Sidebar.tsx b/src/components/layout/Sidebar.tsx index e12e781..aaa4098 100644 --- a/src/components/layout/Sidebar.tsx +++ b/src/components/layout/Sidebar.tsx @@ -34,9 +34,8 @@ export default function Sidebar({ isOpen, onClose }: SidebarProps) { return (