From 13464ce69be7ca066df64943de9271775f67b54c Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Sun, 28 Dec 2025 06:53:48 +0100 Subject: [PATCH] TimerCard: fix button alignment --- Modules/Cards/TimerCard.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Modules/Cards/TimerCard.qml b/Modules/Cards/TimerCard.qml index 8c8ee88aa..4ada764d9 100644 --- a/Modules/Cards/TimerCard.qml +++ b/Modules/Cards/TimerCard.qml @@ -474,12 +474,11 @@ NBox { NTabBar { id: modeTabBar Layout.fillWidth: true - Layout.preferredWidth: buttonRow.width Layout.preferredHeight: startButton.implicitHeight implicitHeight: startButton.implicitHeight - Layout.alignment: Qt.AlignHCenter visible: totalSeconds === 0 currentIndex: isStopwatchMode ? 1 : 0 + margins: 0 onCurrentIndexChanged: { const newMode = currentIndex === 1; if (newMode !== isStopwatchMode) { @@ -515,6 +514,7 @@ NBox { NTabButton { Layout.fillWidth: true + Layout.preferredWidth: 0 text: I18n.tr("calendar.timer.countdown") tabIndex: 0 checked: !isStopwatchMode @@ -523,6 +523,7 @@ NBox { NTabButton { Layout.fillWidth: true + Layout.preferredWidth: 0 text: I18n.tr("calendar.timer.stopwatch") tabIndex: 1 checked: isStopwatchMode