💅 style(notification): improve notification widget appearance with ellipsization and padding

This commit is contained in:
sankalp committed 2025-08-01 01:19:24 +05:45
1 parent 18f83a2b4a
commit 195e2d0f82
2 files changed
+41 -35

No files matched your search

+5 -2
View File
@@ -119,7 +119,8 @@ class NotificationWidget(Box):
children=[
Label(
markup=self._notification.summary, # type: ignore
ellipsization="middle",
ellipsization="end",
max_chars_width=20,
style_classes="summary",
)
],
@@ -128,9 +129,11 @@ class NotificationWidget(Box):
),
Label(
label=self._notification.body, # type: ignore
line_wrap="word-char",
# line_wrap="word-char",
v_align="start",
h_align="start",
ellipsization="end",
max_chars_width=34,
style_classes="body",
),
],