Skip to content

Commit c619d6c

Browse files
TonybynMp4claude
andcommitted
fix(web): show Resolve only on an expanded thread
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent e261a20 commit c619d6c

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

‎apps/web/src/components/pullRequest/PullRequestSummaryTab.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,8 @@ function CollapsedComment({
255255
className={cn("size-3.5 transition-transform", open && "rotate-180")}
256256
/>
257257
</CollapsibleTrigger>
258-
{resolveButton}
258+
{/* Collapsed, the status label already says "Resolved". */}
259+
{open ? resolveButton : null}
259260
{reactionBar}
260261
</div>
261262
<CommentLocation comment={comment} thread={thread} />

‎apps/web/src/components/pullRequest/PullRequestTimelineTab.tsx‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -442,13 +442,15 @@ function ReviewThreadEvent({
442442
)}
443443
/>
444444
</button>
445-
<PullRequestResolveThreadButton
446-
environmentId={reactions.environmentId}
447-
reference={reactions.reference}
448-
detail={detail}
449-
thread={thread}
450-
onRefresh={reactions.onRefresh}
451-
/>
445+
{expanded ? (
446+
<PullRequestResolveThreadButton
447+
environmentId={reactions.environmentId}
448+
reference={reactions.reference}
449+
detail={detail}
450+
thread={thread}
451+
onRefresh={reactions.onRefresh}
452+
/>
453+
) : null}
452454
</div>
453455
{expanded ? (
454456
<>

0 commit comments

Comments
 (0)