fix(@desktop/wallet) adjust network dropdown

Fixes #6486
This commit is contained in:
PavelS 2022-08-05 15:07:03 +03:00 committed by PavelS
parent 7aa7e01f36
commit 1613605296
2 changed files with 16 additions and 2 deletions

View File

@ -94,7 +94,8 @@ Item {
NetworkSelectPopup { NetworkSelectPopup {
id: selectPopup id: selectPopup
x: (parent.width - width) x: (parent.width - width + 5)
y: (selectRectangle.height + 5)
layer1Networks: store.layer1Networks layer1Networks: store.layer1Networks
layer2Networks: store.layer2Networks layer2Networks: store.layer2Networks
testNetworks: store.testNetworks testNetworks: store.testNetworks

View File

@ -16,6 +16,10 @@ Popup {
modal: false modal: false
width: 360 width: 360
height: 432 height: 432
horizontalPadding: 5
verticalPadding: 5
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
property var layer1Networks property var layer1Networks
property var layer2Networks property var layer2Networks
@ -43,13 +47,14 @@ Popup {
contentHeight: content.height contentHeight: content.height
width: popup.width width: popup.width
height: popup.height height: popup.height
padding: 0
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
Column { Column {
id: content id: content
width: scrollView.availableWidth width: scrollView.availableWidth
spacing: Style.current.padding spacing: 4
Repeater { Repeater {
id: chainRepeater1 id: chainRepeater1
@ -62,6 +67,11 @@ Popup {
font.pixelSize: Style.current.primaryTextFontSize font.pixelSize: Style.current.primaryTextFontSize
color: Theme.palette.baseColor1 color: Theme.palette.baseColor1
text: qsTr("Layer 2") text: qsTr("Layer 2")
height: 40
leftPadding: 16
topPadding: 10
verticalAlignment: Text.AlignVCenter
visible: chainRepeater2.count > 0 visible: chainRepeater2.count > 0
} }
@ -84,8 +94,11 @@ Popup {
Component { Component {
id: chainItem id: chainItem
StatusListItem { StatusListItem {
implicitHeight: 48
implicitWidth: scrollView.width implicitWidth: scrollView.width
title: model.chainName title: model.chainName
image.height: 24
image.width: 24
image.source: Style.svg(model.iconUrl) image.source: Style.svg(model.iconUrl)
onClicked: { onClicked: {
checkBox.checked = !checkBox.checked checkBox.checked = !checkBox.checked