Skip to content

TUI timeline columns misaligned due to ANSI escape sequences #9

Description

@rajfirke

Description

Timeline view uses fmt.Sprintf(\"%-6s\", phaseStr) for column alignment, but phaseStr contains ANSI color codes. Printf counts bytes (including invisible escapes), not display width, breaking column alignment.

Fix

Use lipgloss.Width() to measure display width and pad with spaces manually, or apply styles after padding.

Location

internal/player/model.go:182-203

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtuiTUI/player related

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions