From af2139c6711bd65315ae8586b12110356608d12c Mon Sep 17 00:00:00 2001 From: galeon Date: Sun, 14 Jun 2026 20:04:17 +0300 Subject: [PATCH] fixed text width in blocks --- Main.qml | 43 +++++++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/Main.qml b/Main.qml index f81f410..a10fb30 100644 --- a/Main.qml +++ b/Main.qml @@ -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 {