fix(@desktop/wallet): SendModal broken when token symbol is very long
fixes #12336
This commit is contained in:
parent
8252baf846
commit
e5166c11d3
|
@ -259,6 +259,7 @@ StatusDialog {
|
||||||
}
|
}
|
||||||
|
|
||||||
StatusListItemTag {
|
StatusListItemTag {
|
||||||
|
Layout.maximumWidth: 150
|
||||||
Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
|
Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
|
||||||
Layout.preferredHeight: 22
|
Layout.preferredHeight: 22
|
||||||
visible: d.isSelectedHoldingValidAsset || d.isHoveredHoldingValidAsset && !d.isERC721Transfer
|
visible: d.isSelectedHoldingValidAsset || d.isHoveredHoldingValidAsset && !d.isERC721Transfer
|
||||||
|
|
|
@ -40,6 +40,8 @@ StatusListItem {
|
||||||
title: name
|
title: name
|
||||||
titleAsideText: symbol
|
titleAsideText: symbol
|
||||||
statusListItemTitleAside.font.pixelSize: 15
|
statusListItemTitleAside.font.pixelSize: 15
|
||||||
|
statusListItemTitleAside.width: statusListItemTitleArea.width - statusListItemTitle.width
|
||||||
|
statusListItemTitleAside.elide: Text.ElideRight
|
||||||
label: LocaleUtils.currencyAmountToLocaleString(totalCurrencyBalance)
|
label: LocaleUtils.currencyAmountToLocaleString(totalCurrencyBalance)
|
||||||
asset.name: symbol ? Style.png("tokens/" + symbol) : ""
|
asset.name: symbol ? Style.png("tokens/" + symbol) : ""
|
||||||
asset.isImage: true
|
asset.isImage: true
|
||||||
|
|
|
@ -79,6 +79,8 @@ Item {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
|
width: Math.min(implicitWidth, parent.width)
|
||||||
|
|
||||||
control.padding: 4
|
control.padding: 4
|
||||||
control.popup.width: 492
|
control.popup.width: 492
|
||||||
control.popup.x: -root.x
|
control.popup.x: -root.x
|
||||||
|
@ -112,6 +114,7 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
StatusBaseText {
|
StatusBaseText {
|
||||||
|
Layout.fillWidth: true
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
font.pixelSize: root.contentTextSize
|
font.pixelSize: root.contentTextSize
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|
|
@ -157,7 +157,8 @@ Item {
|
||||||
|
|
||||||
HoldingItemSelector {
|
HoldingItemSelector {
|
||||||
id: holdingItemSelector
|
id: holdingItemSelector
|
||||||
anchors.fill: parent
|
width: parent.width
|
||||||
|
height: parent.height
|
||||||
|
|
||||||
defaultIconSource: Style.png("tokens/DEFAULT-TOKEN@3x")
|
defaultIconSource: Style.png("tokens/DEFAULT-TOKEN@3x")
|
||||||
placeholderText: d.isCurrentBrowsingTypeAsset ? qsTr("Select token") : qsTr("Select collectible")
|
placeholderText: d.isCurrentBrowsingTypeAsset ? qsTr("Select token") : qsTr("Select collectible")
|
||||||
|
|
Loading…
Reference in New Issue