0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Changed click target for comment replied-to ref (#21713)

REF
https://linear.app/ghost/issue/PLG-282/change-click-target-for-replied-to-reference
This commit is contained in:
Sanne de Vries 2024-11-25 12:34:40 +01:00 committed by GitHub
parent ac3467165d
commit 1a0a36b64c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -315,9 +315,9 @@ const CommentHeader: React.FC<CommentHeaderProps> = ({comment, className = ''})
</div>
</div>
{(isReplyToReply &&
<a className="mb-2 line-clamp-1 font-sans text-base leading-snug text-neutral-900/50 sm:text-sm dark:text-white/60" href={`#${comment.in_reply_to_id}`} onClick={scrollRepliedToCommentIntoView}>
<span>{t('Replied to')}</span>:<span className="ml-0.5 font-semibold text-[#8B8B8B]" data-testid="comment-in-reply-to">{comment.in_reply_to_snippet}</span>
</a>
<div className="mb-2 line-clamp-1 font-sans text-base leading-snug text-neutral-900/50 sm:text-sm dark:text-white/60">
<span>{t('Replied to')}</span>:<a className="ml-0.5 font-semibold text-neutral-900/60 transition-colors hover:text-neutral-900/70 dark:text-white/70 dark:hover:text-white/80" data-testid="comment-in-reply-to" href={`#${comment.in_reply_to_id}`} onClick={scrollRepliedToCommentIntoView}>{comment.in_reply_to_snippet}</a>
</div>
)}
</>
);