diff options
| author | ATMDA <atdma2600@gmail.com> | 2025-11-16 09:07:16 -0500 |
|---|---|---|
| committer | ATMDA <atdma2600@gmail.com> | 2025-11-16 09:07:16 -0500 |
| commit | c9edb4d0645ebbfb513bb56e731a46bd83b591c6 (patch) | |
| tree | 58a18f897bd3984fe7526ba8bfd27158da7ef77b /components/controls/CollapsibleSection.qml | |
| parent | config: 0ms bug on save corrected (diff) | |
| download | caelestia-shell-c9edb4d0645ebbfb513bb56e731a46bd83b591c6.tar.gz caelestia-shell-c9edb4d0645ebbfb513bb56e731a46bd83b591c6.tar.bz2 caelestia-shell-c9edb4d0645ebbfb513bb56e731a46bd83b591c6.zip | |
controlcenter: animation subtext in collapsiblesection correction
Diffstat (limited to '')
| -rw-r--r-- | components/controls/CollapsibleSection.qml | 5 |
1 files 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 { |