From 0bb41a32c849ee9bcdb2c3a8be90e59716068b2c Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Fri, 17 Mar 2023 00:23:50 +0100 Subject: [PATCH] qml: fix layout issues in ShowConfirmOTP. fixes #8249 --- electrum/plugins/trustedcoin/qml/ShowConfirmOTP.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/electrum/plugins/trustedcoin/qml/ShowConfirmOTP.qml b/electrum/plugins/trustedcoin/qml/ShowConfirmOTP.qml index 849111a12..f979acb8b 100644 --- a/electrum/plugins/trustedcoin/qml/ShowConfirmOTP.qml +++ b/electrum/plugins/trustedcoin/qml/ShowConfirmOTP.qml @@ -25,11 +25,13 @@ WizardComponent { InfoTextArea { id: errorBox + Layout.fillWidth: true iconStyle: InfoTextArea.IconStyle.Error visible: !otpVerified && plugin.remoteKeyState == 'error' } InfoTextArea { + Layout.fillWidth: true iconStyle: InfoTextArea.IconStyle.Warn visible: plugin.remoteKeyState == 'wallet_known' text: qsTr('This wallet is already registered with TrustedCoin. ') @@ -55,15 +57,15 @@ WizardComponent { } Label { + Layout.fillWidth: true visible: !otpVerified && plugin.otpSecret - Layout.preferredWidth: parent.width wrapMode: Text.Wrap text: qsTr('Enter or scan into authenticator app. Then authenticate below') } Label { + Layout.fillWidth: true visible: !otpVerified && plugin.remoteKeyState == 'wallet_known' - Layout.preferredWidth: parent.width wrapMode: Text.Wrap text: qsTr('If you still have your OTP secret, then authenticate below') }