diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-24 17:27:15 +0800 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-24 17:27:15 +0800 |
| commit | 6d40032fe5c520fcedef1e1f173bb4030c5d87b0 (patch) | |
| tree | 7cb5f16592e04f568b17b574de2b8d3cc99de9b9 /modules/dashboard | |
| parent | dashboard: fix calendar size (diff) | |
| download | caelestia-shell-6d40032fe5c520fcedef1e1f173bb4030c5d87b0.tar.gz caelestia-shell-6d40032fe5c520fcedef1e1f173bb4030c5d87b0.tar.bz2 caelestia-shell-6d40032fe5c520fcedef1e1f173bb4030c5d87b0.zip | |
internal: use implicit size for wrappers
Diffstat (limited to 'modules/dashboard')
| -rw-r--r-- | modules/dashboard/Wrapper.qml | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/modules/dashboard/Wrapper.qml b/modules/dashboard/Wrapper.qml index c4388e6..56662e7 100644 --- a/modules/dashboard/Wrapper.qml +++ b/modules/dashboard/Wrapper.qml @@ -9,7 +9,17 @@ Item { visible: height > 0 implicitHeight: 0 - implicitWidth: content.width + BorderConfig.rounding * 2 + implicitWidth: content.implicitWidth + BorderConfig.rounding * 2 + + states: State { + name: "visible" + when: root.visibilities.dashboard + + PropertyChanges { + root.implicitHeight: content.implicitHeight + } + } + transitions: [ Transition { from: "" @@ -22,7 +32,6 @@ Item { easing.type: Easing.BezierSpline easing.bezierCurve: Appearance.anim.curves.emphasizedDecel } - }, Transition { from: "visible" @@ -35,7 +44,6 @@ Item { easing.type: Easing.BezierSpline easing.bezierCurve: Appearance.anim.curves.emphasizedAccel } - } ] @@ -44,15 +52,4 @@ Item { visibilities: root.visibilities } - - states: State { - name: "visible" - when: root.visibilities.dashboard - - PropertyChanges { - root.implicitHeight: content.height - } - - } - } |