Mute color of read notifications

This commit is contained in:
Jeremy Stretch 2024-07-12 14:36:20 -04:00
parent bfd0fa49a2
commit 9fc0c83641
3 changed files with 5 additions and 4 deletions

View File

@ -324,7 +324,7 @@ class NotificationTable(NetBoxTable):
fields = ('pk', 'icon', 'object', 'object_type', 'event_type', 'created', 'read') fields = ('pk', 'icon', 'object', 'object_type', 'event_type', 'created', 'read')
default_columns = ('icon', 'object', 'object_type', 'event_type', 'created', 'read') default_columns = ('icon', 'object', 'object_type', 'event_type', 'created', 'read')
row_attrs = { row_attrs = {
'data-unread': lambda record: not record.read, 'data-read': lambda record: bool(record.read),
} }

Binary file not shown.

View File

@ -1,8 +1,9 @@
@use 'sass:map'; @use 'sass:map';
// Highlight unread notifications // Mute read notifications
tr[data-unread=True] { tr[data-read=True] {
td { td {
background-color: rgba(map.get($theme-colors, "green"), 0.15); background-color: var(--#{$prefix}bg-surface-secondary);
color: $text-muted;
} }
} }