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
|
font.pixelSize: root.fontSize
|
||||||
color: Appearance.colors.colSubtext
|
color: Appearance.colors.colSubtext
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
maximumLineCount: 1
|
||||||
textFormat: Text.StyledText
|
textFormat: Text.StyledText
|
||||||
text: {
|
text: {
|
||||||
return processNotificationBody(notificationObject.body, notificationObject.appName || notificationObject.summary).replace(/\n/g, "<br/>")
|
return processNotificationBody(notificationObject.body, notificationObject.appName || notificationObject.summary).replace(/\n/g, "<br/>")
|
||||||
|
|||||||
Reference in New Issue
Block a user