From 2bdc8344dd45ac29916b7f74bc3d4b3d019ee264 Mon Sep 17 00:00:00 2001 From: Naiyuan Qing <145280634+NevilleQingNY@users.noreply.github.com> Date: Tue, 9 Jun 2026 17:17:14 +0800 Subject: [PATCH] fix(issues): align sticky comment header padding (#3952) --- .../views/issues/components/comment-card.tsx | 36 +++++++++++++------ 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/packages/views/issues/components/comment-card.tsx b/packages/views/issues/components/comment-card.tsx index 483d1eed6..5c68507e7 100644 --- a/packages/views/issues/components/comment-card.tsx +++ b/packages/views/issues/components/comment-card.tsx @@ -335,6 +335,7 @@ function CommentRow({ currentUserId, canModerate = false, isResolution = false, + isHighlighted = false, onEdit, onDelete, onToggleReaction, @@ -348,6 +349,8 @@ function CommentRow({ canModerate?: boolean; /** True when this reply is the thread's resolution (shows the green badge). */ isResolution?: boolean; + /** True when this row is the deep-link target currently being highlighted. */ + isHighlighted?: boolean; onEdit: (commentId: string, content: string, attachmentIds: string[]) => Promise; onDelete: (commentId: string) => void; onToggleReaction: (commentId: string, emoji: string) => void; @@ -369,12 +372,17 @@ function CommentRow({ const isLongContent = contentText.length > 500 || contentText.split("\n").length > 8; return ( -
+
{/* Header pins to the timeline's scroll parent within this reply's own - row (the py-3 box is its containing block), so a LONG reply keeps its + row box, so a LONG reply keeps its author + actions visible while you scroll its body, then releases once this reply ends. bg-card occludes the body scrolling underneath. */} -
+
{getActorName(entry.actor_type, entry.actor_id)} @@ -471,7 +479,7 @@ function CommentRow({ {edit.editing ? (
{ if (e.key === "Escape") edit.cancelEdit(); }} >
@@ -520,17 +528,17 @@ function CommentRow({
) : ( <> -
+
- + onToggleReaction(entry.id, emoji)} getActorName={getActorName} hideAddButton={!isLongContent} - className="mt-1.5 pl-8" + className="mt-1.5 pl-12 pr-4" /> )} @@ -636,7 +644,13 @@ function CommentCardImpl({ stays stuck behind every reply. */}
{/* Header — always visible, acts as toggle */} -
+
@@ -832,7 +846,7 @@ function CommentCardImpl({
)} {resolutionReply && ( -
+
( -
+