fixed text width in blocks

This commit is contained in:
2026-06-14 20:04:17 +03:00
parent ca2a6bdbff
commit af2139c671
+25 -18
View File
@@ -87,12 +87,28 @@ Window {
anchors.bottom: button.top
anchors.leftMargin: -335
anchors.bottomMargin: -218
rotation: 0
editable: false
leftPadding: -30
model: backend.profileNames
contentItem: Text {
id: profileText
text: profileBox.displayText
font: profileBox.font
color: "#ffffff"
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignLeft
elide: Text.ElideRight
anchors.fill: parent
anchors.leftMargin: 30
anchors.rightMargin: 5
anchors.topMargin: 5
anchors.bottomMargin: 5
}
indicator: Image {
id: profileArrow
width: 10; height: 10
visible: true
anchors.left: parent.left
@@ -106,18 +122,6 @@ Window {
autoTransform: true
}
contentItem: Text {
x: 26
width: 114
rightPadding: profileBox.indicator.width + profileBox.spacing
text: profileBox.displayText
font: profileBox.font
color: "#ffffff"
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
elide: Text.ElideRight
}
background: Rectangle {
implicitWidth: 120; implicitHeight: 40
color: profileBox.down ? "#91B315" : "#232323"
@@ -224,13 +228,14 @@ Window {
height: 42
anchors.right: button.right
anchors.bottom: button.top
anchors.rightMargin: 0
anchors.bottomMargin: -218
editable: false
leftPadding: -30
model: backend.versionNames
indicator: Image {
id: versionArrow
width: 10; height: 10
visible: true
anchors.left: parent.left
@@ -245,16 +250,18 @@ Window {
}
contentItem: Text {
x: 26
width: 150
leftPadding: 56
rightPadding: versionBox.indicator.width + versionBox.spacing
id: versionText
text: versionBox.displayText
font: versionBox.font
color: "#ffffff"
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignLeft
elide: Text.ElideRight
anchors.fill: parent
anchors.leftMargin: 30
anchors.rightMargin: 5
anchors.topMargin: 5
anchors.bottomMargin: 5
}
background: Rectangle {