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 {
Layout.fillWidth: true
font.pixelSize: constants.fontSizeLarge
text: model.name
elide: Label.ElideRight
color: model.active ? Material.foreground : Qt.darker(Material.foreground, 1.20)
Layout.fillWidth: true
}
Tag {

View File

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

View File

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