summaryrefslogtreecommitdiff
path: root/modules/dashboard/Content.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-26 11:43:09 +0800
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-26 11:43:09 +0800
commitdaf92f36e1b1eee63b1b6a4c3b36a47c34809ac3 (patch)
tree6a99416823df50363157f0b32f39266d158e7720 /modules/dashboard/Content.qml
parentdashboard: better media panel (diff)
downloadcaelestia-shell-daf92f36e1b1eee63b1b6a4c3b36a47c34809ac3.tar.gz
caelestia-shell-daf92f36e1b1eee63b1b6a4c3b36a47c34809ac3.tar.bz2
caelestia-shell-daf92f36e1b1eee63b1b6a4c3b36a47c34809ac3.zip
dashboard: fix tab indicator animation
Diffstat (limited to 'modules/dashboard/Content.qml')
-rw-r--r--modules/dashboard/Content.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/dashboard/Content.qml b/modules/dashboard/Content.qml
index fc2046f..4026989 100644
--- a/modules/dashboard/Content.qml
+++ b/modules/dashboard/Content.qml
@@ -10,11 +10,12 @@ Item {
id: root
required property PersistentProperties visibilities
+ readonly property real nonAnimWidth: view.implicitWidth + viewWrapper.anchors.margins * 2
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: parent.bottom
- implicitWidth: view.implicitWidth + viewWrapper.anchors.margins * 2
+ implicitWidth: nonAnimWidth
implicitHeight: tabs.implicitHeight + tabs.anchors.topMargin + view.implicitHeight + viewWrapper.anchors.margins * 2
Tabs {
@@ -26,6 +27,7 @@ Item {
anchors.topMargin: Appearance.padding.normal
anchors.margins: Appearance.padding.large
+ nonAnimWidth: root.nonAnimWidth
currentIndex: view.currentIndex
}