Change chat message component width to 90%

This commit is contained in:
yangdx
2025-04-22 17:52:48 +08:00
parent 0328445108
commit a9dcf4d5ca

View File

@@ -36,13 +36,13 @@ export const ChatMessage = ({ message }: { message: MessageWithError }) => {
return ( return (
<div <div
className={`max-w-[80%] rounded-lg px-4 py-2 ${ className={`${
message.role === 'user' message.role === 'user'
? 'bg-primary text-primary-foreground' ? 'max-w-[80%] bg-primary text-primary-foreground'
: message.isError : message.isError
? 'bg-red-100 text-red-600 dark:bg-red-950 dark:text-red-400' ? 'w-[90%] bg-red-100 text-red-600 dark:bg-red-950 dark:text-red-400'
: 'bg-muted' : 'w-[90%] bg-muted'
}`} } rounded-lg px-4 py-2`}
> >
<div className="relative"> <div className="relative">
<ReactMarkdown <ReactMarkdown