Fix N*Pill force show layout

This commit is contained in:
Ly-sec 2025-09-14 22:39:16 +02:00
parent 17dceffff6
commit 852e2fa4d1
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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