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

pull/165/head^2
Miguel Mota 3 years ago
parent 98a94251c4
commit 36729f8ed8
No known key found for this signature in database
GPG Key ID: 67EC1161588A00F9

@ -183,7 +183,12 @@ func (ct *Cointop) UpdateTableHeader() error {
leftAlign := ct.GetTableColumnAlignLeft(col)
switch col {
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 {
label = label + arrow

Loading…
Cancel
Save