notifs: fix weird preview when body contains newlines

This commit is contained in:
end-4
2025-06-27 16:25:57 +02:00
parent 5588f8f1d5
commit a202e16116
@@ -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/>")