Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions cmd/display/tty.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down