authorgravatar for maria@kuuro.netmaria <maria@kuuro.net> 2026-09-11 23:58:42-03:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-09-11 23:58:42-03:00
log25da986037a99d1e87bf1ed51aa58d7babee064a
treec4f9edd88125ad1bbdb084490455b651ab2d5eec
parentfd5553f1afcef4f410a067687faa991743b5034c
signature Signed by PGP key B5690EEEBB952194

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


1 files changed, 6 insertions(+), 4 deletions(-)

apps/web/src/components/pullRequest/PullRequestSummaryTab.tsx+6-4
......@@ -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}