From 03d9000e79a514454aaa14252604faec1e7be7ad Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Fri, 21 Apr 2023 14:50:08 +0200 Subject: [PATCH] qml: fix a few texts that should wrap --- electrum/gui/qml/components/wizard/WCCosignerKeystore.qml | 4 +++- electrum/gui/qml/components/wizard/WCHaveMasterKey.qml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/electrum/gui/qml/components/wizard/WCCosignerKeystore.qml b/electrum/gui/qml/components/wizard/WCCosignerKeystore.qml index 94e5895b4..6e43676a8 100644 --- a/electrum/gui/qml/components/wizard/WCCosignerKeystore.qml +++ b/electrum/gui/qml/components/wizard/WCCosignerKeystore.qml @@ -65,7 +65,7 @@ WizardComponent { } Rectangle { - Layout.preferredWidth: parent.width + Layout.fillWidth: true Layout.preferredHeight: 1 Layout.topMargin: constants.paddingLarge Layout.bottomMargin: constants.paddingLarge @@ -74,7 +74,9 @@ WizardComponent { } Label { + Layout.fillWidth: true text: qsTr('Add cosigner #%1 of %2 to your multi-sig wallet').arg(cosigner).arg(participants) + wrapMode: Text.Wrap } RadioButton { ButtonGroup.group: keystoregroup diff --git a/electrum/gui/qml/components/wizard/WCHaveMasterKey.qml b/electrum/gui/qml/components/wizard/WCHaveMasterKey.qml index 558615573..09cb67347 100644 --- a/electrum/gui/qml/components/wizard/WCHaveMasterKey.qml +++ b/electrum/gui/qml/components/wizard/WCHaveMasterKey.qml @@ -89,7 +89,7 @@ WizardComponent { } Rectangle { - Layout.preferredWidth: parent.width + Layout.fillWidth: true Layout.preferredHeight: 1 Layout.topMargin: constants.paddingLarge Layout.bottomMargin: constants.paddingLarge @@ -103,9 +103,11 @@ WizardComponent { } Label { + Layout.fillWidth: true text: cosigner ? qsTr('Enter cosigner master public key') : qsTr('Create keystore from a master key') + wrapMode: Text.Wrap } RowLayout {