controlcenter: animation subtext in collapsiblesection correction
This commit is contained in:
parent
0d57edcade
commit
c9edb4d064
1 changed files with 2 additions and 3 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue