forked from Shinonome/dots-hyprland
notifs: fix weird preview when body contains newlines
This commit is contained in:
@@ -188,6 +188,7 @@ Item { // Notification item area
|
||||
font.pixelSize: root.fontSize
|
||||
color: Appearance.colors.colSubtext
|
||||
elide: Text.ElideRight
|
||||
maximumLineCount: 1
|
||||
textFormat: Text.StyledText
|
||||
text: {
|
||||
return processNotificationBody(notificationObject.body, notificationObject.appName || notificationObject.summary).replace(/\n/g, "<br/>")
|
||||
|
||||
Reference in New Issue
Block a user