From aff51fb7cffbadd872d43da0bf5f1201ca015759 Mon Sep 17 00:00:00 2001 From: retrozinndev Date: Wed, 12 Mar 2025 15:13:23 -0300 Subject: [PATCH] :boom: fix(ags/notifications): replace '&' with '&' on notification widget(pango markup thing), fix spacing --- ags/style/_float-notifications.scss | 2 +- ags/widget/Notification.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ags/style/_float-notifications.scss b/ags/style/_float-notifications.scss index a633144..d743704 100644 --- a/ags/style/_float-notifications.scss +++ b/ags/style/_float-notifications.scss @@ -7,7 +7,7 @@ top: 6px; }; - & > .notification { + & .notification { margin: 6px; box-shadow: 0 0 4px .5px colors.$bg-primary; } diff --git a/ags/widget/Notification.ts b/ags/widget/Notification.ts index 5fc39d5..770f1ed 100644 --- a/ags/widget/Notification.ts +++ b/ags/widget/Notification.ts @@ -93,7 +93,7 @@ export function NotificationWidget(notification: AstalNotifd.Notification|number useMarkup: true, xalign: 0, truncate: true, - label: notification.summary + label: notification.summary.replace(/\&/g, "&") }), new Widget.Label({ className: "body", @@ -103,7 +103,7 @@ export function NotificationWidget(notification: AstalNotifd.Notification|number truncate: false, wrap: true, wrapMode: Pango.WrapMode.WORD, - label: notification.body + label: notification.body.replace(/\&/g, "&") } as Widget.LabelProps) ] } as Widget.BoxProps)