fix(wallet)_: SendModel scrollbar overlaps with tokens

- Adjusted StatusListItem height to account for scrollbar visibility by adding 16 pixels to contentHeight when tags are visible.
- Set tagsScrollBarVisible to true in TokenListView to ensure the scrollbar is displayed as needed.

fixes: 13620
This commit is contained in:
belalshehab 2024-07-04 19:04:48 +03:00 committed by Belal Shehab
parent 1bc979290f
commit 41ba77e525
2 changed files with 2 additions and 1 deletions

View File

@ -391,7 +391,7 @@ Rectangle {
anchors.top: statusListItemTertiaryTitle.bottom anchors.top: statusListItemTertiaryTitle.bottom
anchors.topMargin: visible ? 2 : 0 anchors.topMargin: visible ? 2 : 0
width: Math.min(statusListItemTagsSlotInline.width, statusListItemTagsSlotInline.availableWidth, parent.width) width: Math.min(statusListItemTagsSlotInline.width, statusListItemTagsSlotInline.availableWidth, parent.width)
height: visible ? contentHeight : 0 height: visible ? contentHeight + 16 : 0
padding: 0 padding: 0
ScrollBar.horizontal.policy: root.tagsScrollBarVisible ? ScrollBar.AsNeeded : ScrollBar.AlwaysOff ScrollBar.horizontal.policy: root.tagsScrollBarVisible ? ScrollBar.AsNeeded : ScrollBar.AlwaysOff

View File

@ -219,6 +219,7 @@ Item {
id: tokenDelegate id: tokenDelegate
TokenBalancePerChainDelegate { TokenBalancePerChainDelegate {
width: tokenList.width width: tokenList.width
tagsScrollBarVisible: true
balancesModel: LeftJoinModel { balancesModel: LeftJoinModel {
leftModel: !!model & !!model.balancesModel ? model.balancesModel : null leftModel: !!model & !!model.balancesModel ? model.balancesModel : null