Skip to content

An AI-powered search engine with a generative UI

fix: preserve line breaks in user messages (#800)

Yoshiki Miura1c3322148c00
diff --git a/components/user-text-section.tsx b/components/user-text-section.tsx
index 2a5fd211..a1cdbf26 100644
--- a/components/user-text-section.tsx
+++ b/components/user-text-section.tsx
@@ -118,7 +118,7 @@ export const UserTextSection: React.FC<UserTextSectionProps> = ({
</div>
) : (
<div className="relative">
- <div className="pr-10">{content}</div>
+ <div className="pr-10 whitespace-pre-wrap">{content}</div>
<div
className={cn(
'absolute top-0 right-0 transition-opacity',