From ced865c224ebb7dd2cbd0f2931d6e33559b9343a Mon Sep 17 00:00:00 2001 From: oliver <97427849+flamboh@users.noreply.github.com> Date: Thu, 1 Oct 2026 20:20:40 -0700 Subject: [PATCH] fix(web): PR checks status collapses to its icon instead of wrapping (#14700) --- .../pullRequest/PullRequestDetailPanel.tsx | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/apps/web/src/components/pullRequest/PullRequestDetailPanel.tsx b/apps/web/src/components/pullRequest/PullRequestDetailPanel.tsx index 1b42fdd4481a17ad13246c30c86b62023b3c5020..5c82e03aa8ea8395ac68ad8aef52acff2cfd327b 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({ ))} {tab === "summary" ? ( - - {workflowApprovalsRequired > 0 && !checksStale && can("approve-workflows") ? ( + + {showsApproveWorkflows ? ( ) : ( {checksState !== null ? ( @@ -2601,7 +2608,7 @@ export function PullRequestDetailPanel({ ) : ( )} - {checksSummary} + {checksSummary} )} -- 2.54.0