controlcenter: animation subtext in collapsiblesection correction

This commit is contained in:
ATMDA 2025-11-16 09:07:16 -05:00
parent 0d57edcade
commit c9edb4d064

View file

@ -69,9 +69,8 @@ ColumnLayout {
} }
Item { Item {
visible: root.description !== ""
Layout.fillWidth: true Layout.fillWidth: true
Layout.preferredHeight: root.expanded ? descriptionText.implicitHeight + Appearance.spacing.smaller + Appearance.spacing.small : 0 Layout.preferredHeight: (root.expanded && root.description !== "") ? descriptionText.implicitHeight + Appearance.spacing.smaller + Appearance.spacing.small : 0
clip: true clip: true
Behavior on Layout.preferredHeight { Behavior on Layout.preferredHeight {
@ -91,7 +90,7 @@ ColumnLayout {
text: root.description text: root.description
color: Colours.palette.m3onSurfaceVariant color: Colours.palette.m3onSurfaceVariant
font.pointSize: Appearance.font.size.small font.pointSize: Appearance.font.size.small
opacity: root.expanded ? 1.0 : 0.0 opacity: (root.expanded && root.description !== "") ? 1.0 : 0.0
Behavior on opacity { Behavior on opacity {
Anim { Anim {