Fix N*Pill expanded text layout

This commit is contained in:
Ly-sec 2025-09-14 09:26:05 +02:00
parent 1ee14df915
commit 290ba4ac03
2 changed files with 2 additions and 0 deletions

View file

@ -80,6 +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
text: root.text
font.pointSize: Style.fontSizeXXS * scaling
font.weight: Style.fontWeightBold

View file

@ -80,6 +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
text: root.text
fontSize: Style.fontSizeXXS * scaling
fontWeight: Style.fontWeightBold