mirror of
https://github.com/jixishi/SerialTerminalForWindowsTerminal.git
synced 2026-08-02 18:22:18 +00:00
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 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
a4996ba3e7
commit
939c3d5a29
@@ -62,7 +62,7 @@ func fillScreen(width, height int, content string) string {
|
|||||||
if width <= 0 || height <= 0 {
|
if width <= 0 || height <= 0 {
|
||||||
return content
|
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.WithWhitespaceChars(" "),
|
||||||
lipgloss.WithWhitespaceForeground(lipgloss.Color("0")),
|
lipgloss.WithWhitespaceForeground(lipgloss.Color("0")),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user