From 16f0c2eb66ae8af91c3b6c88a1b8e03d7905cecd Mon Sep 17 00:00:00 2001 From: Tyler Koenig Date: Tue, 30 Jun 2026 23:22:51 -0400 Subject: [PATCH] fix(tui): pad monitors panel to fill available height Monitors panel now uses titledPanelH with a target height based on maxTableRows, filling the space down to the bottom strip. No more gap between monitors panel and logs/maint strip when fewer monitors than available rows. --- internal/tui/view_dashboard.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/tui/view_dashboard.go b/internal/tui/view_dashboard.go index 0dbeae1..13269c1 100644 --- a/internal/tui/view_dashboard.go +++ b/internal/tui/view_dashboard.go @@ -159,8 +159,9 @@ func (m Model) viewMonitorsLayout() string { m.contentWidth = monW - 2 + monTargetH := m.maxTableRows + 5 monitors := m.viewSitesTab() - monPanel := m.zones.Mark("panel-monitors", m.titledPanel("Monitors", monitors, monW, m.focusedPanel == panelMonitors)) + monPanel := m.zones.Mark("panel-monitors", m.titledPanelH("Monitors", monitors, "", monW, monTargetH, 0, m.focusedPanel == panelMonitors)) var topParts []string topParts = append(topParts, monPanel) -- 2.52.0