Skip to content

Commit 189e2ad

Browse files
committed
style(tui): add leading space before badge for highlight breathing room
1 parent 22337e9 commit 189e2ad

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

go/tui/view.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,9 @@ func (m *TuiModel) renderCatalogPanel(w, h int, _ bool) string {
306306
if colNameW < 12 {
307307
colNameW = 12
308308
}
309-
// Row prefix: " "(1) + badge(1) + " "(3) = 5 chars before the name text.
310-
// Header must use the same 5-char prefix and shrink NAME label by 4 to compensate.
311-
header := " " +
309+
// Row prefix: " "(2) + badge(1) + " "(3) = 6 chars before the name text.
310+
// Header must use the same 6-char prefix, NAME label shrunk by 4 to compensate.
311+
header := " " +
312312
padRight("NAME", colNameW-4) + " " +
313313
padRight("VERSION", 9) + " " +
314314
padRight("SRC", 5) + " " +
@@ -443,7 +443,7 @@ func (m *TuiModel) renderCatalogRow(item bridge.CatalogEntry, selected bool, w,
443443
nameCol = padRight(name, nameW)
444444
}
445445

446-
row := " " + nameCol + " " +
446+
row := " " + nameCol + " " +
447447
padRight(version, 9) + " " +
448448
padRight(source, 5) + " " +
449449
padRight(sync, 14) + " " +

0 commit comments

Comments
 (0)