From 8c3a1bd8282002e6868f50b952a437d428a93f32 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Sat, 30 Mar 2024 19:20:47 +0200 Subject: [PATCH] Changed truncate in chat message --- .../newChatView/chatMessage/index.tsx | 46 +++++++++---------- 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/src/frontend/src/components/newChatView/chatMessage/index.tsx b/src/frontend/src/components/newChatView/chatMessage/index.tsx index fb815b931..554e64fad 100644 --- a/src/frontend/src/components/newChatView/chatMessage/index.tsx +++ b/src/frontend/src/components/newChatView/chatMessage/index.tsx @@ -12,7 +12,7 @@ import IconComponent from "../../../components/genericIconComponent"; import useAlertStore from "../../../stores/alertStore"; import useFlowStore from "../../../stores/flowStore"; import { chatMessagePropsType } from "../../../types/components"; -import { classNames } from "../../../utils/utils"; +import { classNames, cn } from "../../../utils/utils"; import FileCard from "../fileComponent"; export default function ChatMessage({ @@ -123,30 +123,28 @@ export default function ChatMessage({ chat.isSend ? "" : " " )} > -
- {!chat.isSend ? ( -
-
- robot_image -
- {chat.sender_name} -
- ) : ( -
-
- male_technology -
- {chat.sender_name} -
+
+
+
+ {!chat.isSend +
+ + {chat.sender_name} + +
{!chat.isSend ? (