Skip to content

Commit 96a0d18

Browse files
committed
fix: correct column alignment in runs panel by using visual width for status padding
1 parent c1d0f4b commit 96a0d18

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- **Runs panel column misalignment**: Fixed status column padding using byte length instead of visual width, causing misaligned columns when Unicode status icons (✓, ◉, ◼) were displayed.
13+
1014
## [3.0.0-rc.2] - 2026-01-25
1115

1216
### Changed

internal/tui/tui.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1751,8 +1751,9 @@ func (m Model) formatRunListLine(run Run, isSelected bool, width, statusWidth, i
17511751
}
17521752

17531753
// Pad status to statusWidth (for non-exit-code statuses)
1754-
if len(statusText) < statusWidth {
1755-
statusText = statusText + strings.Repeat(" ", statusWidth-len(statusText))
1754+
statusVisualWidth := lipgloss.Width(statusText)
1755+
if statusVisualWidth < statusWidth {
1756+
statusText = statusText + strings.Repeat(" ", statusWidth-statusVisualWidth)
17561757
}
17571758

17581759
// Relative time

0 commit comments

Comments
 (0)