fix: dashboard top margin

This commit is contained in:
2 * r + 2 * t 2026-05-06 19:34:11 +10:00
parent 6b79abf330
commit 07348758f1

View file

@ -18,7 +18,7 @@ Item {
readonly property alias count: bar.count readonly property alias count: bar.count
implicitHeight: bar.implicitHeight + indicator.implicitHeight + indicator.anchors.topMargin + separator.implicitHeight implicitHeight: bar.implicitHeight + bar.anchors.topMargin + indicator.implicitHeight + indicator.anchors.topMargin + separator.implicitHeight
TabBar { TabBar {
id: bar id: bar
@ -26,6 +26,7 @@ Item {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
anchors.top: parent.top anchors.top: parent.top
anchors.topMargin: Tokens.sizes.dashboard.tabIndicatorSpacing
currentIndex: root.dashState.currentTab currentIndex: root.dashState.currentTab
onCurrentIndexChanged: root.dashState.currentTab = currentIndex onCurrentIndexChanged: root.dashState.currentTab = currentIndex