@@ -1517,6 +1517,8 @@ export function PullRequestDetailPanel({
15171517 const statePresentation = detail
15181518 ? resolvePullRequestState ( { state : detail . state , isDraft : detail . isDraft } )
15191519 : null ;
1520+ const showsApproveWorkflows =
1521+ workflowApprovalsRequired > 0 && ! checksStale && can ( "approve-workflows" ) ;
15201522 const checksSummary = checksStale
15211523 ? checksState === null
15221524 ? "No checks reported"
@@ -2551,8 +2553,13 @@ export function PullRequestDetailPanel({
25512553 ) ) }
25522554 </ ToggleGroup >
25532555 { tab === "summary" ? (
2554- < span className = "ml-auto inline-flex shrink-0 items-center" >
2555- { workflowApprovalsRequired > 0 && ! checksStale && can ( "approve-workflows" ) ? (
2556+ < span
2557+ className = { cn (
2558+ "ml-auto flex items-center justify-end" ,
2559+ showsApproveWorkflows ? "shrink-0" : "min-w-0 flex-1" ,
2560+ ) }
2561+ >
2562+ { showsApproveWorkflows ? (
25562563 < Tooltip >
25572564 < TooltipTrigger
25582565 render = {
@@ -2588,7 +2595,7 @@ export function PullRequestDetailPanel({
25882595 </ Tooltip >
25892596 ) : (
25902597 < span
2591- className = "inline- flex items-center gap-1.5 text-xs text-muted-foreground"
2598+ className = "flex h-4 min-w-0 flex-wrap content-start items-center justify-end gap-x- 1.5 overflow-hidden text-xs text-muted-foreground"
25922599 aria-label = { checksSummary ? `Checks: ${ checksSummary } ` : "Checks" }
25932600 >
25942601 { checksState !== null ? (
@@ -2601,7 +2608,7 @@ export function PullRequestDetailPanel({
26012608 ) : (
26022609 < CircleDotIcon aria-hidden className = "size-3.5" />
26032610 ) }
2604- { checksSummary }
2611+ < span className = "whitespace-nowrap" > { checksSummary } </ span >
26052612 </ span >
26062613 ) }
26072614 </ span >
0 commit comments