fix(web): keep comment actions visible when pr comments are folded (#11357)
This commit is contained in:
1 parent
fd5553f1af
commit
25da986037
1 file changed
+6
-4
@@ -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>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user