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