🐛 fix(chatMessage/index.tsx): fix CSS class name and position of the hidden message icon

This commit is contained in:
Lucas Oliveira 2023-07-07 12:54:44 -03:00
commit bb362bd4ff

View file

@ -58,11 +58,11 @@ export default function ChatMessage({
</div> </div>
{!chat.isSend ? ( {!chat.isSend ? (
<div className="flex w-full flex-1 items-center text-start"> <div className="flex w-full flex-1 items-center text-start">
<div className="relative inline-block w-full text-start text-sm font-normal text-primary"> <div className="relative inline-block w-full text-start text-sm font-normal text-muted-foreground">
{hidden && chat.thought && chat.thought !== "" && ( {hidden && (
<div <div
onClick={() => setHidden((prev) => !prev)} onClick={() => setHidden((prev) => !prev)}
className="absolute -left-2 -top-1 cursor-pointer" className="absolute -left-8 -top-5 cursor-pointer"
> >
<MessageSquare className="h-5 w-5 animate-bounce dark:text-white" /> <MessageSquare className="h-5 w-5 animate-bounce dark:text-white" />
</div> </div>