Jim Su 1 год назад
Родитель
Сommit
7af57b3e1d
1 измененных файлов с 3 добавлено и 1 удалено
  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`}
               alt={`${msg.sender} avatar`}
               className="w-[40px] h-[40px] mx-2.5"
               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>
               <CardBody>{msg.content}</CardBody>
             </Card>
             </Card>
           </div>
           </div>