From 7bd808df0b51990e1ab9097a58417e5df2144f8e Mon Sep 17 00:00:00 2001 From: yiling Date: Sun, 31 May 2026 23:30:52 +0800 Subject: [PATCH] refactor(ui): redesign chat input replying to thread header card --- src/ui/components/chat/message-card.tsx | 14 ++++++++------ src/ui/components/chat/message-input.tsx | 11 +++++------ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/ui/components/chat/message-card.tsx b/src/ui/components/chat/message-card.tsx index a2e3c99e..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' @@ -147,7 +147,9 @@ export const MessageCard: React.FC = ({ )} - {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}
)}