diff --git a/src/ui/components/chat/message-card.tsx b/src/ui/components/chat/message-card.tsx index 844a89e5..593b7c29 100644 --- a/src/ui/components/chat/message-card.tsx +++ b/src/ui/components/chat/message-card.tsx @@ -3,11 +3,11 @@ import type { UserInfo } from '@/dtos/team' import { client } from '@/ui/api/client' import { Button } from '@/ui/components/ui/button' import { - Dialog, - DialogContent, - DialogDescription, - DialogHeader, - DialogTitle, + Dialog, + DialogContent, + DialogDescription, + DialogHeader, + DialogTitle, } from '@/ui/components/ui/dialog' import { Separator } from '@/ui/components/ui/separator' import { formatTimeAgo } from '@/ui/lib/time' @@ -120,24 +120,36 @@ export const MessageCard: React.FC = ({ return (
- {hasReplies && !isReply && ( -
- )} + {/* Left Column: Avatar & Thread Lines */} +
+ {/* Thread line above avatar (for replies) */} + {isReply && ( +
+ )} - {isReply && !isLastReply && ( -
- )} + {/* Thread line under avatar (for parent comments with replies, or intermediate replies) */} + {((hasReplies && !isReply) || (isReply && !isLastReply)) && ( +
+ )} - {/* Avatar */} -
- - {creator?.name?.[0]?.toUpperCase() || 'U'} + + + {creator?.name?.[0]?.toUpperCase() || 'U'} +
diff --git a/src/ui/components/chat/message-input.tsx b/src/ui/components/chat/message-input.tsx index a57e7fdd..ce0f099b 100644 --- a/src/ui/components/chat/message-input.tsx +++ b/src/ui/components/chat/message-input.tsx @@ -529,16 +529,15 @@ export const ChatInput = React.forwardRef( {showUpperPart && (
{replyingTo && ( -
-
- Replying to thread - {replyingTo.message} +
+
+ reply to: {replyingTo.message}
)}