fix(web): keep checkout stable while pr actions load (#16625)

Co-authored-by: maria-rcks <[email protected]>
This commit is contained in:
mariaandmaria-rcks authored and GitHub committed 2026-10-09 16:21:27 -03:00
1 parent ecfb7342ed
commit 7856908b84
1 file changed
+4 -2
@@ -1648,10 +1648,10 @@ export function PullRequestDetailPanel({
actions={
handoffSummary ? (
<TooltipProvider delay={150} closeDelay={150} timeout={400}>
{checkoutControl}
{handoffSummary.state === "open" && handoffSummary.mergeability === "conflicting"
? resolveConflictsControl
: null}
{checkoutControl}
</TooltipProvider>
) : undefined
}
@@ -1864,7 +1864,6 @@ export function PullRequestDetailPanel({
threadRef={null}
/>
) : null}
{checkoutControl}
{/* Said where the Merge button is, because it is the answer to why nobody has
pressed it: the merge is already asked for, and the host is holding it. */}
{autoMergeArmed && primaryAction !== "auto-merge-armed" ? (
@@ -1997,6 +1996,9 @@ export function PullRequestDetailPanel({
</span>
</Badge>
) : null}
{/* Keep checkout beside the menu so host actions arriving on its left cannot
move a different action under the reader's pointer. */}
{checkoutControl}
<Menu>
<Tooltip>
<TooltipTrigger