From a202e16116b91640ae31b4714f3ada852f3551c6 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Fri, 27 Jun 2025 16:25:57 +0200 Subject: [PATCH] notifs: fix weird preview when body contains newlines --- .config/quickshell/modules/common/widgets/NotificationItem.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/quickshell/modules/common/widgets/NotificationItem.qml b/.config/quickshell/modules/common/widgets/NotificationItem.qml index fd11e5828..7af7a8086 100644 --- a/.config/quickshell/modules/common/widgets/NotificationItem.qml +++ b/.config/quickshell/modules/common/widgets/NotificationItem.qml @@ -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, "
")