Skip to content

Commit f1a6d6e

Browse files
committed
fix(web): keep comment actions visible when pr comments are folded
1 parent fd5553f commit f1a6d6e

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ function CommentComposer({
363363
};
364364

365365
return (
366-
<div className="mt-3 space-y-2">
366+
<div className="space-y-2">
367367
<Textarea
368368
// Locked while posting: the body is cleared on success, which would otherwise throw
369369
// away a new draft typed while the request was still in flight.
@@ -719,7 +719,7 @@ export function PullRequestSummaryTab({
719719
</div>
720720
</section>
721721

722-
<section aria-label="Description" className="px-4 pt-2 pb-4">
722+
<section aria-label="Description" className="px-4 pt-2 pb-1">
723723
<div className="group">
724724
{bodyScope === detail.url ? (
725725
<PullRequestMarkdownEditor
@@ -991,7 +991,9 @@ export function PullRequestSummaryTab({
991991
)}
992992
</>
993993
)}
994-
{/* Posting is a core capability and remains usable even if the activity read failed. */}
994+
</Section>
995+
<div className="px-4 pb-4">
996+
{/* Posting stays available when the conversation is folded or its activity read failed. */}
995997
{detail.capabilities.comment && detail.viewerPermissions.comment ? (
996998
<CommentComposer
997999
reference={reference}
@@ -1009,7 +1011,7 @@ export function PullRequestSummaryTab({
10091011
onCommented={onRefresh}
10101012
/>
10111013
) : null}
1012-
</Section>
1014+
</div>
10131015
</div>
10141016
);
10151017
}

0 commit comments

Comments
 (0)