From 852e2fa4d1500bdf4b95786713c91fc12a356e42 Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Sun, 14 Sep 2025 22:39:16 +0200 Subject: [PATCH] Fix N*Pill force show layout --- Widgets/NPillHorizontal.qml | 2 +- Widgets/NPillVertical.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Widgets/NPillHorizontal.qml b/Widgets/NPillHorizontal.qml index 8b520f2..78d02d3 100644 --- a/Widgets/NPillHorizontal.qml +++ b/Widgets/NPillHorizontal.qml @@ -80,7 +80,7 @@ Item { id: textItem anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter - anchors.horizontalCenterOffset: openLeftward ? -6 * scaling : 6 * scaling // Adjust based on opening direction + anchors.horizontalCenterOffset: 0 // Center the text properly in the pill text: root.text font.family: Settings.data.ui.fontFixed font.pointSize: Style.fontSizeXXS * scaling diff --git a/Widgets/NPillVertical.qml b/Widgets/NPillVertical.qml index 5ad7312..054c287 100644 --- a/Widgets/NPillVertical.qml +++ b/Widgets/NPillVertical.qml @@ -80,7 +80,7 @@ Item { id: textItem anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter - anchors.verticalCenterOffset: openUpward ? -6 * scaling : 6 * scaling // Adjust based on opening direction + anchors.verticalCenterOffset: 0 // Center the text properly in the pill text: root.text fontSize: Style.fontSizeXXS * scaling fontWeight: Style.fontWeightBold