Truncate Notifications
This commit is contained in:
1 parent
bd9dbf27db
commit
9a969687c1
1 file changed
+2
-2
@@ -91,7 +91,7 @@ class ExpandableNotificationGroup(Box):
|
|||||||
markup=latest_notification._notification.summary.replace(
|
markup=latest_notification._notification.summary.replace(
|
||||||
"\n", " "
|
"\n", " "
|
||||||
),
|
),
|
||||||
max_chars_width=20,
|
max_chars_width=35,
|
||||||
h_align="start",
|
h_align="start",
|
||||||
ellipsization="end",
|
ellipsization="end",
|
||||||
),
|
),
|
||||||
@@ -495,7 +495,7 @@ class NotificationCenterWidget(NotificationWidget):
|
|||||||
Label(
|
Label(
|
||||||
markup=notification.body.replace("\n", " "),
|
markup=notification.body.replace("\n", " "),
|
||||||
h_align="start",
|
h_align="start",
|
||||||
max_chars_width=25,
|
max_chars_width=35,
|
||||||
ellipsization="end",
|
ellipsization="end",
|
||||||
)
|
)
|
||||||
if notification.body
|
if notification.body
|
||||||
|
|||||||
Reference in new issue
Block a user