From 217276ca1863349acf27fec62707274fcca95481 Mon Sep 17 00:00:00 2001 From: Tyler Koenig Date: Thu, 28 May 2026 15:11:29 -0400 Subject: [PATCH] fix(tui): correct table border overhead calculation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- internal/tui/tab_sites.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/tui/tab_sites.go b/internal/tui/tab_sites.go index a4efcf4..12787e7 100644 --- a/internal/tui/tab_sites.go +++ b/internal/tui/tab_sites.go @@ -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 }