fix(SwapModal): Buy button not resizing with text

- also limit the max width in order for the ErrorTag not to overflow the
modal width

Fixes #15687
This commit is contained in:
Lukáš Tinkl 2024-07-24 00:38:10 +02:00 committed by Lukáš Tinkl
parent 7fb241b964
commit 765b526493
2 changed files with 1 additions and 1 deletions

View File

@ -307,6 +307,7 @@ StatusDialog {
ErrorTag {
objectName: "errorTag"
visible: d.isError
Layout.maximumWidth: parent.width
Layout.alignment: Qt.AlignHCenter
Layout.topMargin: Style.current.smallPadding
text: root.swapAdaptor.errorMessage

View File

@ -54,7 +54,6 @@ InformationTag {
objectName: "rightComponentButton"
horizontalPadding: 8
width: visible || root.loading ? implicitWidth : 0
visible: root.buttonVisible
size: StatusBaseButton.Size.Tiny