fix(chat): improve error message display with better styling and word-break (#767)

- Add error icon and colored background/border for error messages
- Add break-all and max-w-full to prevent long error text overflow
- CSS: word-break and overflow-wrap for inline code in error messages
This commit is contained in:
Nguyễn Ngô Thượng
2026-04-01 18:36:47 +03:00
committed by GitHub
parent aa071556bf
commit d68bec491c
2 changed files with 10 additions and 3 deletions
+2
View File
@@ -847,6 +847,8 @@ html:not(.dark) .chat-scroll {
.streamdown-content code[data-streamdown="inline-code"] {
background-color: var(--markdown-inline-code-bg, var(--surface-muted)) !important;
color: var(--markdown-inline-code, var(--foreground)) !important;
word-break: break-all;
overflow-wrap: break-word;
}
/* Markdown headings - use theme colors */