From 8cdfa81b798c1918af759cc6843a61316608fc02 Mon Sep 17 00:00:00 2001 From: Alexandra Betouni <31625338+alexandraB99@users.noreply.github.com> Date: Tue, 20 Feb 2024 20:26:36 +0200 Subject: [PATCH] [BackupSeedPopup]: Fixed warning message size based on text size Closes #8402 --- .../Profile/popups/backupseed/Acknowledgements.qml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/ui/app/AppLayouts/Profile/popups/backupseed/Acknowledgements.qml b/ui/app/AppLayouts/Profile/popups/backupseed/Acknowledgements.qml index 491257b19f..694d59b3c9 100644 --- a/ui/app/AppLayouts/Profile/popups/backupseed/Acknowledgements.qml +++ b/ui/app/AppLayouts/Profile/popups/backupseed/Acknowledgements.qml @@ -22,17 +22,12 @@ ColumnLayout { Item { anchors.fill: parent - anchors.margins: -1000 - anchors.bottomMargin: -root.spacing - clip: true StatusScrollView { id: flick anchors.fill: parent - anchors.margins: -parent.anchors.margins - anchors.bottomMargin: -parent.anchors.bottomMargin contentWidth: availableWidth ScrollBar.vertical.policy: ScrollBar.AlwaysOn @@ -75,6 +70,7 @@ ColumnLayout { id: txtDesc font.pixelSize: Style.current.primaryTextFontSize horizontalAlignment: Text.AlignHCenter + wrapMode: Text.WordWrap text: qsTr("Your seed phrase is a 12-word passcode to your funds.") Layout.fillWidth: true } @@ -130,12 +126,12 @@ ColumnLayout { } } - Rectangle { - color: Theme.palette.statusModal.backgroundColor + Item { Layout.fillWidth: true - Layout.preferredHeight: 60 + Layout.preferredHeight: (warningText.contentHeight + Style.current.padding) StyledText { + id: warningText anchors.fill: parent anchors.margins: Style.current.halfPadding horizontalAlignment: Text.AlignHCenter