From 79f93c486b11b1564e072e90f26fbf5c98bc1ab8 Mon Sep 17 00:00:00 2001 From: waterWang Date: Sun, 9 Aug 2026 04:17:17 +0800 Subject: [PATCH] feat(notifications): add tabular-nums to numeric displays on NotificationsPanel Apply font-variant-numeric: tabular-nums on amounts/counts so that digits align vertically during animation and live updates. Closes #777 --- src/pages/NotificationsPanel.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/NotificationsPanel.tsx b/src/pages/NotificationsPanel.tsx index a5d50d8..3aa19ea 100644 --- a/src/pages/NotificationsPanel.tsx +++ b/src/pages/NotificationsPanel.tsx @@ -140,7 +140,7 @@ export default function NotificationsPanel({ maxItems }: NotificationsPanelProps

{allRead ? "You're all caught up." - : `You have ${unreadCount} unread notification${unreadCount === 1 ? "" : "s"}.`} + : <>You have {unreadCount} unread notification{unreadCount === 1 ? "" : "s"}.}

{!allRead && ( @@ -198,7 +198,7 @@ export default function NotificationsPanel({ maxItems }: NotificationsPanelProps
- {unreadCount} + {unreadCount} {" "}unread - {notifications.length} total + {notifications.length} total