Skip to content
TypeScript

fix(web): keep comment actions visible when pr comments are folded (#11357)

maria25da986037a9
diff --git a/apps/web/src/components/pullRequest/PullRequestSummaryTab.tsx b/apps/web/src/components/pullRequest/PullRequestSummaryTab.tsx
index 764e8cc9553..fa625639491 100644
--- a/apps/web/src/components/pullRequest/PullRequestSummaryTab.tsx
+++ b/apps/web/src/components/pullRequest/PullRequestSummaryTab.tsx
@@ -363,7 +363,7 @@ function CommentComposer({
};
return (
- <div className="mt-3 space-y-2">
+ <div className="space-y-2">
<Textarea
// Locked while posting: the body is cleared on success, which would otherwise throw
// away a new draft typed while the request was still in flight.
@@ -719,7 +719,7 @@ export function PullRequestSummaryTab({
</div>
</section>
- <section aria-label="Description" className="px-4 pt-2 pb-4">
+ <section aria-label="Description" className="px-4 pt-2 pb-1">
<div className="group">
{bodyScope === detail.url ? (
<PullRequestMarkdownEditor
@@ -991,7 +991,9 @@ export function PullRequestSummaryTab({
)}
</>
)}
- {/* Posting is a core capability and remains usable even if the activity read failed. */}
+ </Section>
+ <div className="px-4 pb-4">
+ {/* Posting stays available when the conversation is folded or its activity read failed. */}
{detail.capabilities.comment && detail.viewerPermissions.comment ? (
<CommentComposer
reference={reference}
@@ -1009,7 +1011,7 @@ export function PullRequestSummaryTab({
onCommented={onRefresh}
/>
) : null}
- </Section>
+ </div>
</div>
);
}