From 939c3d5a29bfd32c5460f914be0532ff62ec831b Mon Sep 17 00:00:00 2001 From: JiXieShi Date: Sun, 24 May 2026 02:15:02 +0800 Subject: [PATCH] fix: center main view content using terminal size Change fillScreen from lipgloss.Left to lipgloss.Center for horizontal positioning so content is centered based on actual terminal dimensions. Co-Authored-By: Claude Opus 4.7 --- internal/tui/render.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/tui/render.go b/internal/tui/render.go index 53b6311..5b14eae 100644 --- a/internal/tui/render.go +++ b/internal/tui/render.go @@ -62,7 +62,7 @@ func fillScreen(width, height int, content string) string { if width <= 0 || height <= 0 { return content } - return lipgloss.Place(width, height, lipgloss.Left, lipgloss.Top, content, + return lipgloss.Place(width, height, lipgloss.Center, lipgloss.Center, content, lipgloss.WithWhitespaceChars(" "), lipgloss.WithWhitespaceForeground(lipgloss.Color("0")), )