From cdb8c356e9dd4365e1fd798abf6c76b994a36854 Mon Sep 17 00:00:00 2001 From: Tyler Koenig Date: Thu, 4 Jun 2026 16:07:44 -0400 Subject: [PATCH] fix(tui): clip overflowing content to keep footer pinned Sites table with many rows exceeded the fixed content height, pushing footer down. MaxHeight now clips content that overflows while Height still pads shorter content upward. --- internal/tui/view_dashboard.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/tui/view_dashboard.go b/internal/tui/view_dashboard.go index 04a7f3a..f3e4e78 100644 --- a/internal/tui/view_dashboard.go +++ b/internal/tui/view_dashboard.go @@ -185,7 +185,7 @@ func (m Model) viewDashboard() string { if contentHeight < 1 { contentHeight = 1 } - paddedContent := lipgloss.NewStyle().Height(contentHeight).Render(content) + paddedContent := lipgloss.NewStyle().Height(contentHeight).MaxHeight(contentHeight).Render(content) return outerPad.Render(lipgloss.JoinVertical(lipgloss.Top, header, paddedContent, footer)) }