Card refinements

This commit is contained in:
2026-08-11 15:58:15 -04:00
parent 793dfab5c8
commit 721828b5cb
9 changed files with 134 additions and 38 deletions

View File

@@ -211,11 +211,15 @@ class NotificationsPlugin(BasePlugin):
'severity': 'info',
'empty': 'hide',
'position': 60,
# Stacked, not inline: the type is a label and the message is
# prose. On one line the type gets truncated to make room for
# text that then gets truncated anyway, and neither is
# readable.
'layout': 'stacked',
'map': {
'title': 'typename',
'detail': 'message',
'meta': [{'key': 'endtime', 'label': 'until',
'format': 'date'}],
'detailtooltip': 'fullmessage',
'link': '/notifications/{notificationid}',
},
},