[BackupSeedPopup]: Fixed warning message size based on text size

Closes #8402
This commit is contained in:
Alexandra Betouni 2024-02-20 20:26:36 +02:00
parent a3923461e8
commit 8cdfa81b79
1 changed files with 4 additions and 8 deletions

View File

@ -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