fix: hide counter on All tab in projects table

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Krao Hasanee
2026-06-08 16:48:16 -04:00
parent 4faf0e80b6
commit 8b0cb31bc6
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ function TasksPageShell({ statsTasks = [], projects = [], onAddProject = null, c
{projectTabs.map(t => (
<button key={t.id} onClick={() => setProjTab(t.id)} className={`section-tab-btn${projTab === t.id ? ' is-active' : ''}`}>
{t.label}
{projectTabCounts[t.id] > 0 && (
{t.id !== 'all' && projectTabCounts[t.id] > 0 && (
<span style={{ marginLeft: 5, fontSize: 12, fontWeight: 600, color: projTab === t.id ? 'var(--accent)' : 'var(--text-muted)', background: 'var(--card-bg-2)', border: '1px solid var(--border)', borderRadius: 10, padding: '3px 8px' }}>
{projectTabCounts[t.id]}
</span>