fix(tui): version string, tab rename, sparse tab centering #142

Merged
lerko merged 5 commits from fix/tui-version-and-tab-label into main 2026-06-20 19:19:44 +00:00
Showing only changes of commit 94b27488bd - Show all commits
+12 -1
View File
@@ -181,7 +181,18 @@ func (m Model) viewDashboard() string {
if contentHeight < 1 {
contentHeight = 1
}
paddedContent := lipgloss.NewStyle().Height(contentHeight).MaxHeight(contentHeight).Render(content)
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)
}
return outerPad.Render(lipgloss.JoinVertical(lipgloss.Top, header, paddedContent, footer))
}