Ver Fonte

Make user messages blue (#428)

Jim Su há 1 ano atrás
pai
commit
7af57b3e1d
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      frontend/src/components/ChatInterface.tsx

+ 3 - 1
frontend/src/components/ChatInterface.tsx

@@ -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>