1
0

qml: limit wallet name label widths so they get wrapped/elided. fixes #8317

This commit is contained in:
Sander van Grieken
2023-04-20 10:27:30 +02:00
parent fd6e34bf5f
commit 1649f9993e
3 changed files with 7 additions and 1 deletions

View File

@@ -81,10 +81,11 @@ Pane {
} }
Label { Label {
Layout.fillWidth: true
font.pixelSize: constants.fontSizeLarge font.pixelSize: constants.fontSizeLarge
text: model.name text: model.name
elide: Label.ElideRight
color: model.active ? Material.foreground : Qt.darker(Material.foreground, 1.20) color: model.active ? Material.foreground : Qt.darker(Material.foreground, 1.20)
Layout.fillWidth: true
} }
Tag { Tag {

View File

@@ -129,6 +129,7 @@ ApplicationWindow
} }
RowLayout { RowLayout {
width: parent.width
Item { Item {
Layout.preferredWidth: constants.paddingXLarge Layout.preferredWidth: constants.paddingXLarge

View File

@@ -13,10 +13,14 @@ WizardComponent {
} }
ColumnLayout { ColumnLayout {
width: parent.width
Label { Label {
Layout.fillWidth: true
text: Daemon.singlePasswordEnabled text: Daemon.singlePasswordEnabled
? qsTr('Enter password') ? qsTr('Enter password')
: qsTr('Enter password for %1').arg(wizard_data['wallet_name']) : qsTr('Enter password for %1').arg(wizard_data['wallet_name'])
wrapMode: Text.Wrap
} }
PasswordField { PasswordField {
id: password1 id: password1