Make user messages blue (#428)

This commit is contained in:
Jim Su 2024-03-31 01:09:03 -04:00 committed by GitHub
parent ddf27c0891
commit 7af57b3e1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,7 +27,9 @@ function MessageList(): JSX.Element {
alt={`${msg.sender} avatar`}
className="w-[40px] h-[40px] mx-2.5"
/>
<Card className="w-4/5">
<Card
className={`w-4/5 ${msg.sender === "user" ? "bg-primary" : ""}`}
>
<CardBody>{msg.content}</CardBody>
</Card>
</div>