File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 22
33import { useState , FormEvent } from "react" ;
44import { askAI } from "@/app/actions/chatActions" ;
5+ import { StyledMarkdown } from "./markdown" ;
56
67export function ChatForm ( { documentContent } : { documentContent : string } ) {
78 const [ inputValue , setInputValue ] = useState ( "" ) ;
@@ -82,8 +83,8 @@ export function ChatForm({ documentContent }: { documentContent: string }) {
8283 < article >
8384 < h3 className = "text-lg font-semibold mb-2" > AIの回答</ h3 >
8485 < div className = "chat chat-start" >
85- < div className = "chat-bubble chat-bubble-primary" >
86- < div className = "response-container" > { response } </ div >
86+ < div className = "chat-bubble bg-secondary-content text-black" style = { { maxWidth : "100%" , wordBreak : "break-word" } } >
87+ < div className = "response-container" > < StyledMarkdown content = { response } /> </ div >
8788 </ div >
8889 </ div >
8990 </ article >
You can’t perform that action at this time.
0 commit comments