fix(@desktop/wallet): SendModal broken when token symbol is very long

fixes #12336
This commit is contained in:
Khushboo Mehta 2023-10-03 23:10:02 +02:00 committed by Khushboo-dev-cpp
parent 8252baf846
commit e5166c11d3
4 changed files with 8 additions and 1 deletions

View File

@ -259,6 +259,7 @@ StatusDialog {
}
StatusListItemTag {
Layout.maximumWidth: 150
Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
Layout.preferredHeight: 22
visible: d.isSelectedHoldingValidAsset || d.isHoveredHoldingValidAsset && !d.isERC721Transfer

View File

@ -40,6 +40,8 @@ StatusListItem {
title: name
titleAsideText: symbol
statusListItemTitleAside.font.pixelSize: 15
statusListItemTitleAside.width: statusListItemTitleArea.width - statusListItemTitle.width
statusListItemTitleAside.elide: Text.ElideRight
label: LocaleUtils.currencyAmountToLocaleString(totalCurrencyBalance)
asset.name: symbol ? Style.png("tokens/" + symbol) : ""
asset.isImage: true

View File

@ -79,6 +79,8 @@ Item {
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
width: Math.min(implicitWidth, parent.width)
control.padding: 4
control.popup.width: 492
control.popup.x: -root.x
@ -112,6 +114,7 @@ Item {
}
}
StatusBaseText {
Layout.fillWidth: true
Layout.alignment: Qt.AlignVCenter
font.pixelSize: root.contentTextSize
elide: Text.ElideRight

View File

@ -157,7 +157,8 @@ Item {
HoldingItemSelector {
id: holdingItemSelector
anchors.fill: parent
width: parent.width
height: parent.height
defaultIconSource: Style.png("tokens/DEFAULT-TOKEN@3x")
placeholderText: d.isCurrentBrowsingTypeAsset ? qsTr("Select token") : qsTr("Select collectible")