From a7023aaf456c5b1decc26c929a71d08a2dd537a5 Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Wed, 8 Oct 2025 13:08:45 -0400 Subject: [PATCH] fix(notifs): fix notification expand animation --- modules/notifications/Notification.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/notifications/Notification.qml b/modules/notifications/Notification.qml index 47516e2..537391a 100644 --- a/modules/notifications/Notification.qml +++ b/modules/notifications/Notification.qml @@ -228,7 +228,7 @@ CustomRect { anchors.top: parent.top anchors.left: image.right anchors.leftMargin: 10 - anchors.topMargin: 2 + anchors.topMargin: root.expanded ? 5 : 2 animate: true text: summaryPreviewMetrics.elidedText @@ -277,7 +277,7 @@ CustomRect { anchors.left: image.right anchors.right: parent.right anchors.leftMargin: 10 - anchors.topMargin: 5 + anchors.topMargin: root.expanded ? 5 : 2 anchors.rightMargin: 10 animate: true @@ -370,6 +370,7 @@ CustomRect { font.pointSize: Config.font.size.small opacity: root.expanded ? 1 : 0 + visible: opacity > 0 Behavior on opacity { Anim {} @@ -467,8 +468,8 @@ CustomRect { anchors.left: summary.left anchors.right: parent.right anchors.top: summary.bottom - anchors.rightMargin: 7 anchors.topMargin: 3 + anchors.rightMargin: 7 animate: true textFormat: Text.MarkdownText