From 944fee7256be1ebc9742c8a6a15156004c54fdfa Mon Sep 17 00:00:00 2001 From: Chad Curtis Date: Mon, 28 Jul 2025 08:20:01 +0000 Subject: [PATCH] Do not show sidebar until a project exists. --- src/pages/Index.tsx | 44 +++++++++++++++++++++++++------------------- 1 file changed, 25 insertions(+), 19 deletions(-) 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 && (