From c9edb4d0645ebbfb513bb56e731a46bd83b591c6 Mon Sep 17 00:00:00 2001 From: ATMDA Date: Sun, 16 Nov 2025 09:07:16 -0500 Subject: controlcenter: animation subtext in collapsiblesection correction --- components/controls/CollapsibleSection.qml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/controls/CollapsibleSection.qml b/components/controls/CollapsibleSection.qml index e1cd35f..2df169a 100644 --- a/components/controls/CollapsibleSection.qml +++ b/components/controls/CollapsibleSection.qml @@ -69,9 +69,8 @@ ColumnLayout { } Item { - visible: root.description !== "" 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 Behavior on Layout.preferredHeight { @@ -91,7 +90,7 @@ ColumnLayout { text: root.description color: Colours.palette.m3onSurfaceVariant 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 { Anim { -- cgit v1.2.3-freya