From f4ebb5feaef56519790a015fd7c08c027ccb00d5 Mon Sep 17 00:00:00 2001 From: ace-smart Date: Wed, 10 Feb 2021 20:25:54 +0400 Subject: [PATCH] Limited StatusToolTip width for maxWidth. Fixes #1817 --- ui/shared/TransactionSigner.qml | 2 -- ui/shared/status/StatusToolTip.qml | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/shared/TransactionSigner.qml b/ui/shared/TransactionSigner.qml index 47ce3cfa01..beb23d16a0 100644 --- a/ui/shared/TransactionSigner.qml +++ b/ui/shared/TransactionSigner.qml @@ -58,7 +58,6 @@ Item { icon.name: "info" StatusToolTip { visible: infoButton.hovered - width: 337 //% "Signing phrase is a 3 word combination that displayed when you entered the wallet on this device for the first time." text: qsTrId("signing-phrase-is-a-3-word-combination-that-displayed-when-you-entered-the-wallet-on-this-device-for-the-first-time-") } @@ -87,7 +86,6 @@ Item { icon.name: "info" StatusToolTip { visible: passwordInfoButton.hovered - width: 224 //% "Enter the password you use to unlock this device" text: qsTrId("enter-the-password-you-use-to-unlock-this-device") } diff --git a/ui/shared/status/StatusToolTip.qml b/ui/shared/status/StatusToolTip.qml index 38a3350475..1be54bbaca 100644 --- a/ui/shared/status/StatusToolTip.qml +++ b/ui/shared/status/StatusToolTip.qml @@ -5,7 +5,8 @@ import "../../shared" ToolTip { id: tooltip - implicitWidth: textContent.implicitWidth + Style.current.bigPadding + property int maxWidth: 400 + implicitWidth: Math.min(maxWidth, textContent.implicitWidth + Style.current.bigPadding) leftPadding: Style.current.smallPadding rightPadding: Style.current.smallPadding topPadding: Style.current.smallPadding