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:
parent
98a94251c4
commit
36729f8ed8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user