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
+4 -1
View File
@@ -21,7 +21,10 @@
"Bash(git commit -q -m 'style: card-bg dark-based alpha to match Safari panel look *)",
"Bash(git commit -q -m 'style: white-based card-bg 0.07, blur 12px→20px for less transparency *)",
"Bash(git commit -q -m 'fix: subcontractor PDF quality, footer on all pages, header gap *)",
"mcp__plugin_supabase_supabase__execute_sql"
"mcp__plugin_supabase_supabase__execute_sql",
"Bash(sed -n '88,100p' src/pages/Tasks.jsx)",
"Bash(sed -n '570,600p' src/pages/Tasks.jsx)",
"Bash(git commit -q -m 'fix: hide counter on All tab in projects table *)"
]
}
}
+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>