notif item: fix binding loop for notifs with images

This commit is contained in:
end-4
2025-07-18 15:29:08 +07:00
parent 0806c97fe5
commit 40f2e0b6a7
@@ -208,7 +208,7 @@ Item { // Notification item area
elide: Text.ElideRight
textFormat: Text.RichText
text: {
return `<style>img{max-width:${notificationBodyText.width}px;}</style>` +
return `<style>img{max-width:${300 /* binding to notificationBodyText.width would cause a binding loop */}px;}</style>` +
`${processNotificationBody(notificationObject.body, notificationObject.appName || notificationObject.summary).replace(/\n/g, "<br/>")}`
}