diff --git a/widgets/board.go b/widgets/board.go index 741156d..f0146e0 100644 --- a/widgets/board.go +++ b/widgets/board.go @@ -108,17 +108,17 @@ func createBoard(ctx context.Context, _ terminalapi.Terminal, _ interface{}) wid if durr < 0 { durr = math.MaxInt } - if durr < 14 && !column.IsFinal { - fgColor = cell.ColorBlack - bgColor = cell.ColorRed - d := fmt.Sprintf("%02dd", durr) - title = title[0:colWidth-3] + d - } if durr < 28 && !column.IsFinal { bgColor = cell.ColorYellow fgColor = cell.ColorBlack - d := fmt.Sprintf("%02dd", durr) - title = title[0:colWidth-3] + d + d := fmt.Sprintf("..% 2dd", durr) + title = title[0:colWidth-5] + d + } + if durr < 14 && !column.IsFinal { + fgColor = cell.ColorBlack + bgColor = cell.ColorRed + d := fmt.Sprintf("..% 2dd", durr) + title = title[0:colWidth-5] + d } if column.IsFinal { bgColor = cell.ColorBlack