center notification indicator

This commit is contained in:
7w1 committed 2026-06-16 23:35:51 -05:00
1 parent 6ba8e126c2
commit a78d2de8e2
3 files changed
+15 -1

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
default: patch
---
Centered the notification bell icon in the room list.
+2 -1
View File
@@ -85,6 +85,7 @@ import { Presence, useUserPresence } from '$hooks/useUserPresence';
import { AvatarPresence, PresenceBadge } from '$components/presence';
import { RoomNavUser } from './RoomNavUser';
import { SidebarUnreadBadge } from '$components/sidebar';
import * as css from './styles.css';
/**
* Reactively checks whether a room has unread messages.
@@ -526,7 +527,7 @@ export function RoomNavItem({
</UnreadBadgeCenter>
)}
{!optionsVisible && notificationMode !== RoomNotificationMode.Unset && (
<span aria-label={notificationMode}>
<span className={css.NavItemChipIcon} aria-label={notificationMode}>
{roomNotificationModeChipIcon(notificationMode)}
</span>
)}
+8
View File
@@ -11,3 +11,11 @@ export const CategoryButtonIcon = style({
lineHeight: 0,
opacity: config.opacity.P400,
});
export const NavItemChipIcon = style({
display: 'inline-flex',
alignItems: 'center',
justifyContent: 'center',
lineHeight: 0,
flexShrink: 0,
});