1
0

qml: TxDetails small form-factor fix, wrap buttons to below fee-bump text if width is constrained

This commit is contained in:
Sander van Grieken
2023-03-23 10:56:42 +01:00
parent f89e0b80e6
commit abae815777

View File

@@ -138,17 +138,23 @@ Pane {
borderColor: constants.colorWarning
visible: txdetails.canBump || txdetails.canCpfp || txdetails.canCancel
RowLayout {
GridLayout {
width: parent.width
columns: actionButtonsLayout.implicitWidth > parent.width/2
? 1
: 2
Label {
Layout.fillWidth: true
text: qsTr('This transaction is still unconfirmed.') + '\n' +
qsTr('You can increase fees to speed up the transaction, or cancel this transaction')
text: qsTr('This transaction is still unconfirmed.') + '\n' + (txdetails.canCancel
? qsTr('You can increase fees to speed up the transaction, or cancel this transaction')
: qsTr('You can increase fees to speed up the transaction'))
wrapMode: Text.Wrap
}
ColumnLayout {
id: actionButtonsLayout
Layout.alignment: Qt.AlignHCenter
Pane {
Layout.alignment: Qt.AlignHCenter
background: Rectangle { color: Material.dialogColor }
padding: 0
visible: txdetails.canBump || txdetails.canCpfp
@@ -168,6 +174,7 @@ Pane {
}
}
Pane {
Layout.alignment: Qt.AlignHCenter
background: Rectangle { color: Material.dialogColor }
padding: 0
visible: txdetails.canCancel