File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { useState } from "react" ;
2
2
import { useParams } from "react-router-dom" ;
3
3
import { useMutation } from "@tanstack/react-query" ;
4
- import { Input } from "@/components/ui/input" ;
5
4
import { Button } from "@/components/ui/button" ;
5
+ import { Input } from "@/components/ui/input" ;
6
6
import "./App.css" ;
7
7
8
8
type TextResponse = {
@@ -58,7 +58,7 @@ export default function Chat() {
58
58
messages . map ( ( message , index ) => (
59
59
< div
60
60
key = { index }
61
- className = { `flex ${
61
+ className = { `text-left flex ${
62
62
message . user === "user"
63
63
? "justify-end"
64
64
: "justify-start"
@@ -71,7 +71,9 @@ export default function Chat() {
71
71
: "bg-muted"
72
72
} `}
73
73
>
74
- { message . text }
74
+ < pre className = "whitespace-pre-wrap break-words font-sans m-0" >
75
+ { message . text }
76
+ </ pre >
75
77
</ div >
76
78
</ div >
77
79
) )
You can’t perform that action at this time.
0 commit comments