fix volume panel disappearing: use animateHeight, remove inner height animation

This commit is contained in:
Damocles 2026-04-13 22:40:15 +02:00
parent 8eaf64eac6
commit 8c915605f2

View file

@ -107,6 +107,7 @@ M.BarSection {
accentColor: root.accentColor accentColor: root.accentColor
panelNamespace: "nova-volume" panelNamespace: "nova-volume"
contentWidth: 220 contentWidth: 220
animateHeight: true
// Compact: slider row // Compact: slider row
Item { Item {
@ -230,16 +231,6 @@ M.BarSection {
id: deviceList id: deviceList
width: parent.width width: parent.width
visible: root._expanded visible: root._expanded
clip: true
property real _targetHeight: root._expanded ? implicitHeight : 0
height: _targetHeight
Behavior on height {
NumberAnimation {
duration: 200
easing.type: Easing.OutCubic
}
}
// Separator // Separator
Rectangle { Rectangle {