diff --git a/cmd/display/tty.go b/cmd/display/tty.go index 0726ce27049..4f437e22d2a 100644 --- a/cmd/display/tty.go +++ b/cmd/display/tty.go @@ -339,6 +339,18 @@ func (w *ttyWriter) printWithDimensions(terminalWidth, terminalHeight int) { } } + // pad timers so they all have the same visible width + for i := range lines { + l := &lines[i] + if l.timer == "" { + continue + } + timerWidth := utf8.RuneCountInString(l.timer) + if timerWidth < timerLen { + l.timer = l.timer + strings.Repeat(" ", timerLen-timerWidth) + } + } + // shorten details/taskID to fit terminal width w.adjustLineWidth(lines, timerLen, terminalWidth)