Skip to content

Commit 2f6e089

Browse files
committed
fix(AccountSelectorHeader): set to purse emoji by default to fix squished height
Fixes #19353 I couldn't reproduce the original issue, but I saw that with no selected emoji, the account selector was squished, hence hard to click. The easiest solution is to use a default emoji. The purse one makes sense, since there is no wallet emoji.
1 parent b29d71e commit 2f6e089

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

ui/StatusQ/src/StatusQ/Components/StatusLetterIdenticon.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Rectangle {
3737
radius: width / 2
3838

3939
StatusEmoji {
40-
visible: root.emoji
40+
visible: !!root.emoji
4141
anchors.centerIn: parent
4242
width: Math.round(parent.width / 2)
4343
height: Math.round(parent.height / 2)

ui/imports/shared/controls/AccountSelectorHeader.qml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,12 @@ AccountSelector {
3434
StatusSmartIdenticon {
3535
id: assetContent
3636
objectName: "assetContent"
37-
asset.emoji: currentAccount.emoji ?? ""
37+
asset.emoji: !!currentAccount.emoji ? currentAccount.emoji : "👛" // Default to purse emoji
3838
asset.color: d.headerStyleBackgroundColor
3939
asset.width: 32
4040
asset.height: asset.width
41-
asset.isLetterIdenticon: !!currentAccount.emoji
41+
asset.isLetterIdenticon: true
4242
asset.bgColor: Theme.palette.primaryColor3
43-
visible: !!currentAccount.emoji
4443
}
4544

4645
StatusBaseText {

0 commit comments

Comments
 (0)