Browse Source

qml: fix issue with width of fiat textedit on ReceiveDetailsDialog

master
Sander van Grieken 2 years ago
parent
commit
8798a45d70
  1. 14
      electrum/gui/qml/components/ReceiveDetailsDialog.qml

14
electrum/gui/qml/components/ReceiveDetailsDialog.qml

@ -55,33 +55,33 @@ ElDialog {
BtcField { BtcField {
id: amountBtc id: amountBtc
fiatfield: amountFiat fiatfield: amountFiat
Layout.preferredWidth: parent.width /3 Layout.fillWidth: true
} }
Label { Label {
Layout.columnSpan: 2
Layout.rightMargin: constants.paddingXLarge
text: Config.baseUnit text: Config.baseUnit
color: Material.accentColor color: Material.accentColor
} }
Item { width: 1; height: 1; Layout.fillWidth: true }
Item { visible: Daemon.fx.enabled; width: 1; height: 1 } Item { visible: Daemon.fx.enabled; width: 1; height: 1 }
FiatField { FiatField {
id: amountFiat id: amountFiat
Layout.fillWidth: true
btcfield: amountBtc btcfield: amountBtc
visible: Daemon.fx.enabled visible: Daemon.fx.enabled
Layout.preferredWidth: parent.width /3
} }
Label { Label {
Layout.columnSpan: 2
Layout.rightMargin: constants.paddingXLarge
visible: Daemon.fx.enabled visible: Daemon.fx.enabled
text: Daemon.fx.fiatCurrency text: Daemon.fx.fiatCurrency
color: Material.accentColor color: Material.accentColor
} }
Item { visible: Daemon.fx.enabled; width: 1; height: 1; Layout.fillWidth: true }
Label { Label {
text: qsTr('Expires after') text: qsTr('Expires after')
Layout.fillWidth: false Layout.fillWidth: false
@ -89,7 +89,7 @@ ElDialog {
RequestExpiryComboBox { RequestExpiryComboBox {
id: expires id: expires
Layout.columnSpan: 2 Layout.columnSpan: 3
} }
} }

Loading…
Cancel
Save