2
0
mirror of https://github.com/miguelmota/cointop synced 2024-11-10 13:10:26 +00:00

Add an extra space if it is satoshi character because it overlaps text on right

This commit is contained in:
Miguel Mota 2021-09-25 23:49:27 -07:00
parent 98a94251c4
commit 36729f8ed8
No known key found for this signature in database
GPG Key ID: 67EC1161588A00F9

View File

@ -183,7 +183,12 @@ func (ct *Cointop) UpdateTableHeader() error {
leftAlign := ct.GetTableColumnAlignLeft(col) leftAlign := ct.GetTableColumnAlignLeft(col)
switch col { switch col {
case "price", "balance": case "price", "balance":
label = ct.CurrencySymbol() + label spacing := ""
// Add an extra space because "satoshi" UTF-8 chracter overlaps text on right
if ct.State.currencyConversion == "SATS" {
spacing = " "
}
label = fmt.Sprintf("%s%s%s", ct.CurrencySymbol(), spacing, label)
} }
if leftAlign { if leftAlign {
label = label + arrow label = label + arrow