fix: render newlines in Nova chat user messages (#1061)

Co-authored-by: Vorflux AI <noreply@vorflux.com>
This commit is contained in:
vorflux[bot] 2026-06-06 22:10:04 -07:00 committed by GitHub
parent 9808441f6b
commit 428d3ccefa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -126,7 +126,7 @@ export const UserMessage = memo(function UserMessage({
transition={{ duration: 0.18, ease: "easeOut" }}
className="max-w-[80%] origin-top-right rounded-[12px] bg-[#1B1F24] p-3 px-[14px]"
>
<p className="text-sm text-white">{text}</p>
<p className="text-sm text-white whitespace-pre-wrap">{text}</p>
</motion.div>
)}
</AnimatePresence>