From 1649f9993eb73fc8d038305f90cbb6aba66a4334 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Thu, 20 Apr 2023 10:27:30 +0200 Subject: [PATCH] qml: limit wallet name label widths so they get wrapped/elided. fixes #8317 --- electrum/gui/qml/components/Wallets.qml | 3 ++- electrum/gui/qml/components/main.qml | 1 + electrum/gui/qml/components/wizard/WCWalletPassword.qml | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qml/components/Wallets.qml b/electrum/gui/qml/components/Wallets.qml index 5b6d3b76a..4a8949a37 100644 --- a/electrum/gui/qml/components/Wallets.qml +++ b/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 { diff --git a/electrum/gui/qml/components/main.qml b/electrum/gui/qml/components/main.qml index 15eb7ed0f..09c63b7bf 100644 --- a/electrum/gui/qml/components/main.qml +++ b/electrum/gui/qml/components/main.qml @@ -129,6 +129,7 @@ ApplicationWindow } RowLayout { + width: parent.width Item { Layout.preferredWidth: constants.paddingXLarge diff --git a/electrum/gui/qml/components/wizard/WCWalletPassword.qml b/electrum/gui/qml/components/wizard/WCWalletPassword.qml index 78e3903f1..2e41d1309 100644 --- a/electrum/gui/qml/components/wizard/WCWalletPassword.qml +++ b/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