From 73a0b5bebd6950e730b954dc0c11c4b82e5f3a2c Mon Sep 17 00:00:00 2001 From: Yuanbo Li Date: Wed, 26 Nov 2025 11:45:01 +0800 Subject: [PATCH 1/2] [FixBug] The Desktop version's "New Project" button is wrapped by the conditional logic projects.length > 0, causing it to not display when there are no projects, preventing users from creating new projects. --- src/components/Sidebar.jsx | 72 ++++++++++++++++++++------------------ 1 file changed, 37 insertions(+), 35 deletions(-) diff --git a/src/components/Sidebar.jsx b/src/components/Sidebar.jsx index 8a160cc..926379f 100644 --- a/src/components/Sidebar.jsx +++ b/src/components/Sidebar.jsx @@ -581,9 +581,44 @@ function Sidebar({ - {/* Search Filter and Actions */} + {/* Action Buttons - Desktop only - Always show when not loading */} + {!isLoading && !isMobile && ( +
+
+ + +
+
+ )} + + {/* Search Filter - Only show when there are projects */} {projects.length > 0 && !isLoading && ( -
+
)}
- - {/* Action Buttons - Desktop only */} - {!isMobile && ( -
- - -
- )}
)} From efae890e34caae224d1e2e340fc6a77113ed4ce1 Mon Sep 17 00:00:00 2001 From: Haileyesus Dessie <118998054+blackmammoth@users.noreply.github.com> Date: Thu, 1 Jan 2026 14:46:09 +0300 Subject: [PATCH 2/2] Update button title for creating new project --- src/components/Sidebar.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Sidebar.jsx b/src/components/Sidebar.jsx index 328029f..b06f56e 100644 --- a/src/components/Sidebar.jsx +++ b/src/components/Sidebar.jsx @@ -604,7 +604,7 @@ function Sidebar({ size="sm" className="flex-1 h-8 text-xs bg-primary hover:bg-primary/90 transition-all duration-200" onClick={() => setShowNewProject(true)} - title="Create new project (Ctrl+N)" + title="Create new project" > New Project @@ -1394,4 +1394,4 @@ function Sidebar({ ); } -export default Sidebar; \ No newline at end of file +export default Sidebar;