fix(tui): revert centering, fix demo GIF pacing
CI / test (pull_request) Successful in 2m1s
CI / lint (pull_request) Successful in 1m6s
CI / vulncheck (pull_request) Successful in 56s

Revert upper-third centering — inconsistent start positions across tabs
felt jumpy. Back to standard top-align with consistent table placement.

Demo GIF now pauses on Nodes tab (cluster view is a selling point) and
skips Maint/Users quickly instead of sprinting through all three.
This commit is contained in:
2026-06-20 14:30:40 -04:00
parent ef8e5c0b93
commit 07f3cc8e09
9 changed files with 1 additions and 12 deletions
+1 -12
View File
@@ -181,18 +181,7 @@ func (m Model) viewDashboard() string {
if contentHeight < 1 {
contentHeight = 1
}
contentLines := lipgloss.Height(content)
var paddedContent string
if contentLines < contentHeight {
topPad := (contentHeight - contentLines) / 3
paddedContent = lipgloss.NewStyle().
PaddingTop(topPad).
Height(contentHeight).MaxHeight(contentHeight).
Render(content)
} else {
paddedContent = lipgloss.NewStyle().Height(contentHeight).MaxHeight(contentHeight).Render(content)
}
paddedContent := lipgloss.NewStyle().Height(contentHeight).MaxHeight(contentHeight).Render(content)
return outerPad.Render(lipgloss.JoinVertical(lipgloss.Top, header, paddedContent, footer))
}