Don't show mark all as read if there's nothing to read

This commit is contained in:
Jack Kingsman
2026-03-02 16:42:59 -08:00
parent e3fe36dc19
commit 79db09bd15

View File

@@ -602,7 +602,7 @@ export function Sidebar({
)}
{/* Mark All Read */}
{!query && Object.keys(unreadCounts).length > 0 && (
{!query && Object.values(unreadCounts).some((c) => c > 0) && (
<div
className="px-3 py-2 cursor-pointer flex items-center gap-2 border-l-2 border-transparent hover:bg-accent transition-colors text-[13px]"
onClick={onMarkAllRead}