fix(web): preserve newlines in user chat messages (#444)

Add whitespace-pre-wrap to the user message content div so that
newlines entered via Shift+Enter are rendered correctly instead of
being collapsed into a single line.
This commit is contained in:
kagura-agent
2026-05-06 15:35:54 +08:00
parent 93891789fa
commit 3ebf26225e

View File

@@ -461,7 +461,7 @@ const UserMessage = memo(function UserMessage({
</div>
);
})()}
<div>{msg.content}</div>
<div className="whitespace-pre-wrap">{msg.content}</div>
</div>
</div>
</div>