Skip to content

Commit

Permalink
update wallet's name for transaction page
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeBoy committed Mar 14, 2024
1 parent 68c013d commit 7200752
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions ui/cryptomaterial/dropdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ func (d *DropDown) itemLayout(gtx C, index int, clickable *Clickable, item *Drop

return bodyLayout.Layout2(gtx, func(gtx C) D {
lbl := d.theme.Body2(item.Text)
lbl.MaxLines = 1
if !d.expanded && len(item.Text) > d.maxTextLeng {
lbl.Text = item.Text[:d.maxTextLeng-3 /* subtract space for the ellipsis */] + "..."
}
Expand Down
3 changes: 2 additions & 1 deletion ui/page/transaction/transactions_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ func (pg *TransactionsPage) leftDropdown(gtx C) D {
return D{}
}
return layout.W.Layout(gtx, pg.walletDropDown.Layout)

}),
layout.Rigid(func(gtx C) D {
icon := pg.Theme.Icons.FilterOffImgIcon
Expand Down Expand Up @@ -628,7 +629,7 @@ func (pg *TransactionsPage) HandleUserInteractions() {
fileName := filepath.Join(pg.AssetsManager.RootDir(), "exports", fmt.Sprintf("transaction_export_%d.csv", time.Now().Unix()))
err := exportTxs(assets, fileName)
if err != nil {
errModal := modal.NewErrorModal(pg.Load, fmt.Errorf("Error exporting your wallet(s) transactions: %v", err).Error(), modal.DefaultClickFunc())
errModal := modal.NewErrorModal(pg.Load, fmt.Errorf("error exporting your wallet(s) transactions: %v", err).Error(), modal.DefaultClickFunc())
pg.ParentWindow().ShowModal(errModal)
return
}
Expand Down

0 comments on commit 7200752

Please sign in to comment.