fix tab button width

This commit is contained in:
Gaelle Braud 2025-07-29 14:18:03 +02:00
parent c3d2bd8293
commit 4f494696d9
2 changed files with 2 additions and 2 deletions

View file

@ -89,7 +89,7 @@ Control.TabBar {
contentItem: Text {
id: tabText
width: Math.min(implicitWidth, mainItem.width / mainItem.model.length)
width: implicitWidth
font {
pixelSize: mainItem.pixelSize
weight: mainItem.textWeight

View file

@ -51,7 +51,7 @@ ColumnLayout {
onCurrentIndexChanged: console.log("current index", currentIndex)
visible: mainItem.tabbarModel !== undefined
Layout.fillWidth: true
Layout.preferredWidth: parent.width
Layout.preferredWidth: implicitWidth
model: mainItem.tabbarModel
pixelSize: Typography.h3m.pixelSize
textWeight: Typography.h3m.weight