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 {
id: selectPopup
x: (parent.width - width)
x: (parent.width - width + 5)
y: (selectRectangle.height + 5)
layer1Networks: store.layer1Networks
layer2Networks: store.layer2Networks
testNetworks: store.testNetworks

View File

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