fix: Wallet: Authentication popup is broken

- do no let text/input overflow our overall width
- set the scrollview horizontal padding to 0, the content item has its
own margins already

Fixes #10915
This commit is contained in:
Lukáš Tinkl 2023-06-05 14:02:11 +02:00 committed by Lukáš Tinkl
parent ee9db6a302
commit 2a253be291
2 changed files with 5 additions and 2 deletions

View File

@ -64,9 +64,8 @@ StatusModal {
StatusScrollView {
id: scrollView
anchors.fill: parent
implicitWidth: Constants.keycard.general.popupWidth
contentWidth: availableWidth
horizontalPadding: 0
KeycardPopupContent {
id: content

View File

@ -67,12 +67,14 @@ Item {
StatusBaseText {
id: title
Layout.alignment: Qt.AlignCenter
Layout.maximumWidth: parent.width
font.weight: Font.Bold
}
StatusBaseText {
id: message
Layout.alignment: Qt.AlignCenter
Layout.maximumWidth: parent.width
wrapMode: Text.WordWrap
visible: text != ""
}
@ -81,6 +83,7 @@ Item {
id: password
objectName: "keycardPasswordInput"
Layout.alignment: Qt.AlignHCenter
Layout.maximumWidth: parent.width
signingPhrase: root.sharedKeycardModule.getSigningPhrase()
placeholderText: qsTr("Password")
selectByMouse: true
@ -102,6 +105,7 @@ Item {
StatusBaseText {
id: info
Layout.alignment: Qt.AlignCenter
Layout.maximumWidth: parent.width
wrapMode: Text.WordWrap
}