fix(@desktop): StatusScrollView fixes for wallet
This commit is contained in:
parent
58e0fce819
commit
667db7038a
|
@ -14,6 +14,7 @@ Rectangle {
|
|||
id: walletFooter
|
||||
|
||||
property var sendModal
|
||||
property var walletStore
|
||||
|
||||
height: 61
|
||||
color: Theme.palette.statusAppLayout.rightPanelBackgroundColor
|
||||
|
@ -57,7 +58,7 @@ Rectangle {
|
|||
Component {
|
||||
id: receiveModalComponent
|
||||
ReceiveModal {
|
||||
selectedAccount: walletHeader.walletStore.currentAccount
|
||||
selectedAccount: walletStore.currentAccount
|
||||
anchors.centerIn: parent
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ Popup {
|
|||
|
||||
Column {
|
||||
id: content
|
||||
width: popup.width
|
||||
width: scrollView.availableWidth
|
||||
spacing: Style.current.padding
|
||||
|
||||
Repeater {
|
||||
|
|
|
@ -78,6 +78,7 @@ Item {
|
|||
Layout.leftMargin: -root.StackView.view.anchors.leftMargin
|
||||
Layout.rightMargin: -root.StackView.view.anchors.rightMargin
|
||||
sendModal: root.sendModal
|
||||
walletStore: RootStore
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -266,24 +266,16 @@ StatusModal {
|
|||
width: parent.width
|
||||
anchors.top: border.bottom
|
||||
anchors.topMargin: Style.current.halfPadding
|
||||
anchors.left: parent.left
|
||||
contentHeight: recipientSelector.height + addressSelector.height + networkSelector.height +
|
||||
fees.height + Style.current.halfPadding
|
||||
ScrollBar.vertical.policy: ScrollBar.AlwaysOff
|
||||
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
|
||||
|
||||
ColumnLayout {
|
||||
width: scrollView.availableWidth
|
||||
spacing: Style.current.halfPadding
|
||||
// To-do use standard StatusInput component once the flow for ens name resolution is clear
|
||||
RecipientSelector {
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: Style.current.halfPadding
|
||||
anchors.right: parent.right
|
||||
anchors.left: parent.left
|
||||
|
||||
id: recipientSelector
|
||||
accounts: popup.store.accounts
|
||||
contactsStore: popup.contactsStore
|
||||
label: qsTr("To")
|
||||
Layout.fillWidth: true
|
||||
input.placeholderText: qsTr("Enter an ENS name or address")
|
||||
input.anchors.leftMargin: 0
|
||||
input.anchors.rightMargin: 0
|
||||
|
@ -293,26 +285,22 @@ StatusModal {
|
|||
isSelectorVisible: false
|
||||
addContactEnabled: false
|
||||
onSelectedRecipientChanged: gasSelector.estimateGas()
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
TabAddressSelectorView {
|
||||
id: addressSelector
|
||||
anchors.top: recipientSelector.bottom
|
||||
anchors.right: parent.right
|
||||
anchors.left: parent.left
|
||||
store: popup.store
|
||||
onContactSelected: {
|
||||
recipientSelector.input.text = address
|
||||
}
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
NetworkSelector {
|
||||
id: networkSelector
|
||||
store: popup.store
|
||||
selectedAccount: popup.selectedAccount
|
||||
anchors.top: addressSelector.bottom
|
||||
anchors.right: parent.right
|
||||
anchors.left: parent.left
|
||||
amountToSend: isNaN(parseFloat(amountToSendInput.text)) ? 0 : parseFloat(amountToSendInput.text)
|
||||
requiredGasInEth: gasSelector.selectedGasEthValue
|
||||
assets: popup.selectedAccount.assets
|
||||
|
@ -322,15 +310,15 @@ StatusModal {
|
|||
gasSelector.updateGasEthValue()
|
||||
}
|
||||
onReCalculateSuggestedRoute: popup.recalculateRoutesAndFees(disabledChainIds)
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
id: fees
|
||||
radius: 13
|
||||
color: Theme.palette.indirectColor1
|
||||
anchors.top: networkSelector.bottom
|
||||
width: parent.width
|
||||
height: gasSelector.visible || gasValidator.visible ? feesLayout.height + gasValidator.height : 0
|
||||
implicitHeight: gasSelector.visible || gasValidator.visible ? feesLayout.height + gasValidator.height : 0
|
||||
Layout.fillWidth: true
|
||||
|
||||
RowLayout {
|
||||
id: feesLayout
|
||||
|
@ -400,6 +388,7 @@ StatusModal {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
TransactionFormGroup {
|
||||
id: group4
|
||||
|
||||
|
|
Loading…
Reference in New Issue