Browse Source

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

master
Sander van Grieken 3 years ago
parent
commit
1649f9993e
  1. 3
      electrum/gui/qml/components/Wallets.qml
  2. 1
      electrum/gui/qml/components/main.qml
  3. 4
      electrum/gui/qml/components/wizard/WCWalletPassword.qml

3
electrum/gui/qml/components/Wallets.qml

@ -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 {

1
electrum/gui/qml/components/main.qml

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

4
electrum/gui/qml/components/wizard/WCWalletPassword.qml

@ -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

Loading…
Cancel
Save