TypeScript
fix(web): PR checks status collapses to its icon instead of wrapping (#14700)
oliverced865c224eb
diff --git a/apps/web/src/components/pullRequest/PullRequestDetailPanel.tsx b/apps/web/src/components/pullRequest/PullRequestDetailPanel.tsxindex 1b42fdd4481..5c82e03aa8e 100644--- a/apps/web/src/components/pullRequest/PullRequestDetailPanel.tsx+++ b/apps/web/src/components/pullRequest/PullRequestDetailPanel.tsx@@ -1517,6 +1517,8 @@ export function PullRequestDetailPanel({const statePresentation = detail? resolvePullRequestState({ state: detail.state, isDraft: detail.isDraft }): null;+ const showsApproveWorkflows =+ workflowApprovalsRequired > 0 && !checksStale && can("approve-workflows");const checksSummary = checksStale? checksState === null? "No checks reported"@@ -2551,8 +2553,13 @@ export function PullRequestDetailPanel({))}</ToggleGroup>{tab === "summary" ? (- <span className="ml-auto inline-flex shrink-0 items-center">- {workflowApprovalsRequired > 0 && !checksStale && can("approve-workflows") ? (+ <span+ className={cn(+ "ml-auto flex items-center justify-end",+ showsApproveWorkflows ? "shrink-0" : "min-w-0 flex-1",+ )}+ >+ {showsApproveWorkflows ? (<Tooltip><TooltipTriggerrender={@@ -2588,7 +2595,7 @@ export function PullRequestDetailPanel({</Tooltip>) : (<span- className="inline-flex items-center gap-1.5 text-xs text-muted-foreground"+ 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"aria-label={checksSummary ? `Checks: ${checksSummary}` : "Checks"}>{checksState !== null ? (@@ -2601,7 +2608,7 @@ export function PullRequestDetailPanel({) : (<CircleDotIcon aria-hidden className="size-3.5" />)}- {checksSummary}+ <span className="whitespace-nowrap">{checksSummary}</span></span>)}</span>