Update ChatDetail.tsx
This commit is contained in:
@@ -397,7 +397,7 @@ export default function ChatDetail({ chatId }: { chatId: string }) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex-1 overflow-y-auto p-2 space-y-2 pb-[58px]">
|
<div className="flex-1 overflow-y-auto p-2 space-y-2 pb-[80px]">
|
||||||
{chat.messages.length === 0 ? (
|
{chat.messages.length === 0 ? (
|
||||||
<div className="h-full flex items-center justify-center">
|
<div className="h-full flex items-center justify-center">
|
||||||
<p className="text-muted-foreground">No messages yet. Send one to start the conversation.</p>
|
<p className="text-muted-foreground">No messages yet. Send one to start the conversation.</p>
|
||||||
@@ -407,7 +407,7 @@ export default function ChatDetail({ chatId }: { chatId: string }) {
|
|||||||
<div
|
<div
|
||||||
key={msg._id || messageIndex}
|
key={msg._id || messageIndex}
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex",
|
"flex mb-4",
|
||||||
msg.sender === "vendor" ? "justify-end" : "justify-start"
|
msg.sender === "vendor" ? "justify-end" : "justify-start"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user