From 014fb2a9a7fe8e34d6d126778583cf1746023f0e Mon Sep 17 00:00:00 2001 From: mroxso <24775431+mroxso@users.noreply.github.com> Date: Sun, 6 Sep 2026 22:26:36 +0200 Subject: [PATCH] Place notification count beside bell --- src/components/nostr/NotificationsCenter.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/nostr/NotificationsCenter.tsx b/src/components/nostr/NotificationsCenter.tsx index d7ed1df..0503438 100644 --- a/src/components/nostr/NotificationsCenter.tsx +++ b/src/components/nostr/NotificationsCenter.tsx @@ -112,14 +112,15 @@ function NotificationButton({ {...props} type={props.type ?? 'button'} className={cn( - 'relative flex size-7 items-center justify-center rounded text-muted-foreground transition-colors hover:bg-foreground/10 hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring', + 'relative flex h-7 items-center justify-center rounded text-muted-foreground transition-colors hover:bg-foreground/10 hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring', + unreadCount > 0 ? 'gap-1 px-1.5' : 'w-7', className, )} aria-label={props['aria-label'] ?? label} > {unreadCount > 0 ? : } {unreadCount > 0 && ( - + {unreadCount > 99 ? '99+' : unreadCount} )}