mirror of
https://github.com/sst/opencode.git
synced 2025-08-04 05:28:16 +00:00
fix: message error centering (#1085)
This commit is contained in:
parent
91ad64feda
commit
3ce3ac8e61
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue