Skip to content

Commit

Permalink
truncate wallet name if it so long
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeBoy committed Mar 13, 2024
1 parent fca2ef9 commit b2a4abe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/page/root/wallet_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,11 @@ func (pg *WalletSelectorPage) layoutNameAndBalance(gtx C, item *walletWithBalanc
Axis: layout.Horizontal,
}.Layout(gtx,
layout.Rigid(func(gtx C) D {
gtx.Constraints.Max.X = gtx.Constraints.Max.X * 3 / 5
txt := pg.Theme.Label(values.TextSize18, item.wallet.GetWalletName())
txt.Color = pg.Theme.Color.Text
txt.Font.Weight = font.SemiBold
txt.MaxLines = 1
return txt.Layout(gtx)
}),
layout.Rigid(func(gtx C) D {
Expand Down

0 comments on commit b2a4abe

Please sign in to comment.