fix(tui): correct table border overhead calculation
CI / test (pull_request) Successful in 2m54s
CI / lint (pull_request) Successful in 1m6s
CI / vulncheck (pull_request) Successful in 56s

Was hardcoded to 30 — actual overhead is 2 (borders) + numCols-1
(separators) = 10 for 9 columns. The 20-char gap was being
redistributed by lipgloss into columns like # making them too wide.
This commit is contained in:
2026-05-28 15:11:29 -04:00
parent 2e489cdc1a
commit 217276ca18
+3 -2
View File
@@ -360,8 +360,9 @@ func (m Model) computeLayout() tableLayout {
{"RT", "RETRIES", 5, 9},
}
overhead := 30
usable := m.termWidth - chromePadH - 2 - overhead
numCols := len(cols)
borderOverhead := 2 + (numCols - 1) // left + right border + column separators
usable := m.termWidth - chromePadH - 2 - borderOverhead
if usable < 80 {
usable = 80
}