don't animate on notificationwindow

This commit is contained in:
2025-10-14 00:08:25 -03:00
parent 6e4d43b206
commit edca97f4c5
2 changed files with 4 additions and 1 deletions

View File

@@ -26,13 +26,15 @@ BackgroundRectangle {
return Quickshell.iconPath(notification?.appIcon);
}
property bool collapsed: false
property bool collapsed: true
implicitWidth: 400
readonly property real contentHeight: Math.max(notifLayout.implicitHeight + 20, 100)
height: collapsed ? 0 : contentHeight
Component.onCompleted: { root.collapsed = false }
Behavior on height {
SequentialAnimation {
NumberAnimation {

View File

@@ -93,6 +93,7 @@ PanelWindow {
required property var modelData
notification: modelData
implicitWidth: listView.width - 20
collapsed: false
onDismissed: {
NotificationService.notificationDismiss(notification);
}