mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
Add unread notification dot to timeline card button (#7749)
This commit is contained in:
parent
bf8438cbb2
commit
479e7e9a25
@ -140,6 +140,11 @@ $pulse-color: $alert;
|
||||
animation-iteration-count: 1;
|
||||
|
||||
&.mx_Indicator_gray {
|
||||
background: rgba($roomtile-default-badge-bg-color, 1);
|
||||
box-shadow: rgba($roomtile-default-badge-bg-color, 1);
|
||||
}
|
||||
|
||||
&.mx_Indicator_bold {
|
||||
background: rgba($input-darker-fg-color, 1);
|
||||
box-shadow: rgba($input-darker-fg-color, 1);
|
||||
}
|
||||
|
@ -60,6 +60,7 @@ const UnreadIndicator = ({ color }: IUnreadIndicatorProps) => {
|
||||
|
||||
const classes = classNames({
|
||||
"mx_RightPanel_headerButton_unreadIndicator": true,
|
||||
"mx_Indicator_bold": color === NotificationColor.Bold,
|
||||
"mx_Indicator_gray": color === NotificationColor.Grey,
|
||||
});
|
||||
return <>
|
||||
@ -100,6 +101,7 @@ const TimelineCardHeaderButton = ({ room, isHighlighted, onClick }: IHeaderButto
|
||||
let unreadIndicator;
|
||||
const color = RoomNotificationStateStore.instance.getRoomState(room).color;
|
||||
switch (color) {
|
||||
case NotificationColor.Bold:
|
||||
case NotificationColor.Grey:
|
||||
case NotificationColor.Red:
|
||||
unreadIndicator = <UnreadIndicator color={color} />;
|
||||
|
Loading…
Reference in New Issue
Block a user