diff --git a/src/pages/Index.tsx b/src/pages/Index.tsx index 141a6a54..20c0c91e 100644 --- a/src/pages/Index.tsx +++ b/src/pages/Index.tsx @@ -113,21 +113,25 @@ export default function Index() {
{/* Mobile Header */}
- + {projects.length > 0 ? ( + + ) : ( +
/* Spacer when no sidebar */ + )}

Shakespeare

{/* Spacer */}
- {/* Mobile Sidebar Overlay */} - {isSidebarVisible && ( + {/* Mobile Sidebar Overlay - only show if user has projects */} + {projects.length > 0 && isSidebarVisible && (
{/* Backdrop - only covers the area not occupied by the sidebar */}
- {/* Fixed Sidebar */} -
- -
+ {/* Fixed Sidebar - only show if user has created projects */} + {projects.length > 0 && ( +
+ +
+ )} {/* Main Content Area */}
- {/* Header */} - {!isSidebarVisible && ( + {/* Header - only show toggle button if user has projects */} + {!isSidebarVisible && projects.length > 0 && (