An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
fix: preserve line breaks in user messages (#800)
Yoshiki Miura1c3322148c00
diff --git a/components/user-text-section.tsx b/components/user-text-section.tsxindex 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><divclassName={cn('absolute top-0 right-0 transition-opacity',