From 204d72cd40a87f046e18a73d75b9886ce9b0ce39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Cie=C5=9Blak?= Date: Wed, 4 Sep 2024 18:49:07 +0200 Subject: [PATCH] TokenSelectorNew: workaround for QTBUG-62411, minor sizing fixes --- .../AppLayouts/Wallet/controls/TokenSelectorButton.qml | 4 ++-- .../Wallet/panels/SearchableCollectiblesPanel.qml | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ui/app/AppLayouts/Wallet/controls/TokenSelectorButton.qml b/ui/app/AppLayouts/Wallet/controls/TokenSelectorButton.qml index 06694affcf..792e0b81bf 100644 --- a/ui/app/AppLayouts/Wallet/controls/TokenSelectorButton.qml +++ b/ui/app/AppLayouts/Wallet/controls/TokenSelectorButton.qml @@ -70,8 +70,8 @@ Control { id: tokenSelectorIcon objectName: "tokenSelectorIcon" - Layout.preferredWidth: 20 - Layout.preferredHeight: 20 + Layout.preferredWidth: 21 + Layout.preferredHeight: 21 image.source: root.icon } diff --git a/ui/app/AppLayouts/Wallet/panels/SearchableCollectiblesPanel.qml b/ui/app/AppLayouts/Wallet/panels/SearchableCollectiblesPanel.qml index a90b49d051..607d5e6525 100644 --- a/ui/app/AppLayouts/Wallet/panels/SearchableCollectiblesPanel.qml +++ b/ui/app/AppLayouts/Wallet/panels/SearchableCollectiblesPanel.qml @@ -124,6 +124,13 @@ Control { section.property: "type" section.delegate: StatusBaseText { width: ListView.view.width + + // Fixed height as a workaround for the + // https://bugreports.qt.io/browse/QTBUG-62411 bug + // causing improper first item positioning in some cases + // (overlapping with the section delegate) + height: 50 + color: Theme.palette.baseColor1 padding: Style.current.padding bottomPadding: 0 @@ -164,6 +171,9 @@ Control { icon.height: 12 text: qsTr("Back") + horizontalPadding: 21 + bottomPadding: Style.current.halfPadding + onClicked: collectiblesStackView.pop(StackView.Immediate) }