mirror of
https://github.com/SableClient/Sable.git
synced 2026-12-01 14:22:31 -08:00
center notification indicator
This commit is contained in:
1 parent
6ba8e126c2
commit
a78d2de8e2
3 files changed
+15
-1
No files matched your search
@@ -0,0 +1,5 @@
|
||||
---
|
||||
default: patch
|
||||
---
|
||||
|
||||
Centered the notification bell icon in the room list.
|
||||
@@ -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>
|
||||
)}
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
Reference in new issue
Block a user