From b5e91fa2dcdaa885d557559100f72a16125e72d1 Mon Sep 17 00:00:00 2001 From: Rubin Bhandari Date: Tue, 5 Nov 2024 11:15:57 +0545 Subject: [PATCH] fix: markup shown as tags from some browsers (#404) * fix: markup shown as tags from some browsers * fix: notification body overflow * Revert "fix: notification body overflow" This reverts commit 58c0fe4758cbfcf1ca0fbf6e9c6a66322aa703cf. * fix: remove options --- modules/menus/notifications/notification/body/index.ts | 2 ++ modules/menus/notifications/notification/header/index.ts | 2 ++ modules/notifications/body/index.ts | 2 ++ modules/notifications/header/index.ts | 2 ++ 4 files changed, 8 insertions(+) diff --git a/modules/menus/notifications/notification/body/index.ts b/modules/menus/notifications/notification/body/index.ts index 62aac7a..dd566af 100644 --- a/modules/menus/notifications/notification/body/index.ts +++ b/modules/menus/notifications/notification/body/index.ts @@ -19,6 +19,8 @@ export const Body = (notif: Notification): BoxWidget => { wrap: true, class_name: 'notification-card-body-label menu', label: notif['body'], + }).on('realize', (self) => { + self.set_markup(notif['body']); }), ], }); diff --git a/modules/menus/notifications/notification/header/index.ts b/modules/menus/notifications/notification/header/index.ts index 1373ae3..70fe58c 100644 --- a/modules/menus/notifications/notification/header/index.ts +++ b/modules/menus/notifications/notification/header/index.ts @@ -35,6 +35,8 @@ export const Header = (notif: Notification): BoxWidget => { truncate: 'end', wrap: true, label: notif['summary'], + }).on('realize', (self) => { + self.set_markup(notif['summary']); }), ], }), diff --git a/modules/notifications/body/index.ts b/modules/notifications/body/index.ts index 92fa7a7..d6bc7fa 100644 --- a/modules/notifications/body/index.ts +++ b/modules/notifications/body/index.ts @@ -20,6 +20,8 @@ export const Body = (notif: Notification): Box => { wrap: true, class_name: 'notification-card-body-label', label: notif['body'], + }).on('realize', (self) => { + self.set_markup(notif['body']); }), ], }); diff --git a/modules/notifications/header/index.ts b/modules/notifications/header/index.ts index 71d038d..695291a 100644 --- a/modules/notifications/header/index.ts +++ b/modules/notifications/header/index.ts @@ -37,6 +37,8 @@ export const Header = (notif: Notification): Box => { truncate: 'end', wrap: true, label: notif['summary'], + }).on('realize', (self) => { + self.set_markup(notif['summary']); }), ], }),