summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/tui/internal/components/chat/messages.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/tui/internal/components/chat/messages.go b/packages/tui/internal/components/chat/messages.go
index 93f952a78..2d8261e5e 100644
--- a/packages/tui/internal/components/chat/messages.go
+++ b/packages/tui/internal/components/chat/messages.go
@@ -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
}