Skip to content

Commit f03a235

Browse files
committed
fix(tui): align catalog header with badge offset in data rows
1 parent f4950b7 commit f03a235

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

go/tui/view.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,10 @@ func (m *TuiModel) renderCatalogPanel(w, h int, _ bool) string {
306306
if colNameW < 12 {
307307
colNameW = 12
308308
}
309-
header := " " +
310-
padRight("NAME", colNameW) + " " +
309+
// Row prefix: " "(1) + badge(1) + " "(2) = 4 chars before the name text.
310+
// Header must use the same 4-char prefix and shrink NAME label by 3 to compensate.
311+
header := " " +
312+
padRight("NAME", colNameW-3) + " " +
311313
padRight("VERSION", 9) + " " +
312314
padRight("SRC", 5) + " " +
313315
padRight("SYNC", 14) + " " +

0 commit comments

Comments
 (0)