mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-17 17:19:02 +00:00
[BackupSeedPopup]: Fixed warning message size based on text size
Closes #8402
This commit is contained in:
parent
a3923461e8
commit
8cdfa81b79
@ -22,17 +22,12 @@ ColumnLayout {
|
|||||||
|
|
||||||
Item {
|
Item {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: -1000
|
|
||||||
anchors.bottomMargin: -root.spacing
|
|
||||||
|
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
StatusScrollView {
|
StatusScrollView {
|
||||||
id: flick
|
id: flick
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: -parent.anchors.margins
|
|
||||||
anchors.bottomMargin: -parent.anchors.bottomMargin
|
|
||||||
contentWidth: availableWidth
|
contentWidth: availableWidth
|
||||||
|
|
||||||
ScrollBar.vertical.policy: ScrollBar.AlwaysOn
|
ScrollBar.vertical.policy: ScrollBar.AlwaysOn
|
||||||
@ -75,6 +70,7 @@ ColumnLayout {
|
|||||||
id: txtDesc
|
id: txtDesc
|
||||||
font.pixelSize: Style.current.primaryTextFontSize
|
font.pixelSize: Style.current.primaryTextFontSize
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
wrapMode: Text.WordWrap
|
||||||
text: qsTr("Your seed phrase is a 12-word passcode to your funds.")
|
text: qsTr("Your seed phrase is a 12-word passcode to your funds.")
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
@ -130,12 +126,12 @@ ColumnLayout {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Item {
|
||||||
color: Theme.palette.statusModal.backgroundColor
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 60
|
Layout.preferredHeight: (warningText.contentHeight + Style.current.padding)
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
|
id: warningText
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: Style.current.halfPadding
|
anchors.margins: Style.current.halfPadding
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
Loading…
x
Reference in New Issue
Block a user