fix(StatusPageIndicator): fix rendering of last page button text

- do not hardcode the button width as that might get elided for large
values, and display erroneously "..." instead of the value
This commit is contained in:
Lukáš Tinkl 2024-11-01 14:25:38 +01:00 committed by Lukáš Tinkl
parent e3128587d8
commit 84017104f4
1 changed files with 0 additions and 1 deletions

View File

@ -118,7 +118,6 @@ Item {
model: d.pages model: d.pages
delegate: StatusBaseButton { delegate: StatusBaseButton {
objectName: "Page-%1".arg(itemText) objectName: "Page-%1".arg(itemText)
width: d.buttonWidth
text: itemText text: itemText
size: StatusBaseButton.Size.Small size: StatusBaseButton.Size.Small
normalColor: itemIndex === root.currentIndex? Theme.palette.primaryColor3 : "transparent" normalColor: itemIndex === root.currentIndex? Theme.palette.primaryColor3 : "transparent"