Skip to content

Commit

Permalink
[BackupSeedPopup]: Fixed warning message size based on text size
Browse files Browse the repository at this point in the history
Closes #8402
  • Loading branch information
alexandraB99 committed Feb 21, 2024
1 parent 94f250d commit 5871f21
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions ui/app/AppLayouts/Profile/popups/backupseed/Acknowledgements.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5871f21

Please sign in to comment.