From a4add403fbfdcf24c9469c0d92cb440ec5dcfcc9 Mon Sep 17 00:00:00 2001 From: lyzno1 Date: Sat, 11 Oct 2025 13:49:13 +0800 Subject: [PATCH] Fix MentionInput layout and improve comment hover styling --- web/app/components/workflow/comment/thread.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/web/app/components/workflow/comment/thread.tsx b/web/app/components/workflow/comment/thread.tsx index 4fae9cd887..ecfa5c2add 100644 --- a/web/app/components/workflow/comment/thread.tsx +++ b/web/app/components/workflow/comment/thread.tsx @@ -37,7 +37,8 @@ const ThreadMessage: FC<{ createdAt: number content: string mentionedNames?: string[] -}> = ({ authorId, authorName, avatarUrl, createdAt, content, mentionedNames }) => { + className?: string +}> = ({ authorId, authorName, avatarUrl, createdAt, content, mentionedNames, className }) => { const { formatTimeFromNow } = useFormatTimeFromNow() const { userProfile } = useAppContext() const currentUserId = userProfile?.id @@ -108,7 +109,7 @@ const ThreadMessage: FC<{ }, [content, mentionedNames]) return ( -
+
= memo(({ createdAt={comment.created_at} content={comment.content} mentionedNames={mentionsByTarget.get('root')} + className='pl-1' /> {replies.length > 0 && (
@@ -331,7 +333,7 @@ export const CommentThread: FC = memo(({ return (
{isOwnReply && !isReplyEditing && (