fix: message error centering (#1085)

This commit is contained in:
Aiden Cline 2025-07-17 04:27:40 -05:00 committed by GitHub
parent 91ad64feda
commit 3ce3ac8e61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -380,6 +380,12 @@ func (m *messagesComponent) renderView() {
width,
WithBorderColor(t.Error()),
)
error = lipgloss.PlaceHorizontal(
m.width,
lipgloss.Center,
error,
styles.WhitespaceStyle(t.Background()),
)
blocks = append(blocks, error)
m.lineCount += lipgloss.Height(error) + 1
}