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.
This commit was merged in pull request #168.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user