Merge pull request #1882 from lc6464/frontend-fix

fix(chat): preserve blank lines and add input hint
This commit is contained in:
Mauro 2026-03-22 10:48:59 +01:00 committed by GitHub
commit 2f6f25dc58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@ interface UserMessageProps {
export function UserMessage({ content }: UserMessageProps) { export function UserMessage({ content }: UserMessageProps) {
return ( return (
<div className="flex w-full flex-col items-end gap-1.5"> <div className="flex w-full flex-col items-end gap-1.5">
<div className="max-w-[70%] rounded-2xl rounded-tr-sm bg-violet-500 px-5 py-3 text-[15px] leading-relaxed text-white shadow-sm"> <div className="max-w-[70%] rounded-2xl rounded-tr-sm bg-violet-500 px-5 py-3 text-[15px] leading-relaxed text-white shadow-sm whitespace-pre-wrap">
{content} {content}
</div> </div>
</div> </div>

View file

@ -17,7 +17,7 @@
"chat": { "chat": {
"welcome": "How can I help you today?", "welcome": "How can I help you today?",
"welcomeDesc": "Ask me about weather, settings, or any other tasks. I'm here to assist you.", "welcomeDesc": "Ask me about weather, settings, or any other tasks. I'm here to assist you.",
"placeholder": "Start a new message...", "placeholder": "Start a new message...\nPress Enter to send, Shift + Enter for a new line",
"newChat": "New Chat", "newChat": "New Chat",
"notConnected": "Gateway is not running. Start it to chat.", "notConnected": "Gateway is not running. Start it to chat.",
"thinking": { "thinking": {

View file

@ -17,7 +17,7 @@
"chat": { "chat": {
"welcome": "今天我能为您做些什么?", "welcome": "今天我能为您做些什么?",
"welcomeDesc": "您可以询问我天气、设置或其他任何任务,我随时为您效劳。", "welcomeDesc": "您可以询问我天气、设置或其他任何任务,我随时为您效劳。",
"placeholder": "输入新消息...", "placeholder": "输入新消息...\n按 Enter 发送Shift + Enter 换行",
"newChat": "新建对话", "newChat": "新建对话",
"notConnected": "服务未运行,请先启动以进行对话。", "notConnected": "服务未运行,请先启动以进行对话。",
"thinking": { "thinking": {