Skip to content

Commit b3bd938

Browse files
committed
fix(web): PR loading skeleton collapses the checks status like the panel
1 parent d60a71e commit b3bd938

1 file changed

Lines changed: 15 additions & 13 deletions

File tree

‎apps/web/src/components/pullRequest/PullRequestGhosts.tsx‎

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -312,19 +312,21 @@ export function PullRequestDetailGhost({
312312
</Toggle>
313313
))}
314314
</ToggleGroup>
315-
{checksPresentation ? (
316-
<span
317-
className={cn(
318-
"ml-auto inline-flex items-center gap-1.5 text-xs",
319-
checksPresentation.toneClassName,
320-
)}
321-
>
322-
<checksPresentation.Icon aria-hidden className="size-3.5" />
323-
{checksPresentation.label}
324-
</span>
325-
) : (
326-
<GhostBar className="ml-auto h-3 w-32" />
327-
)}
315+
<span className="ml-auto flex min-w-0 flex-1 items-center justify-end">
316+
{checksPresentation ? (
317+
<span
318+
className={cn(
319+
"flex h-4 min-w-0 flex-wrap content-start items-center justify-end gap-x-1.5 overflow-hidden text-xs",
320+
checksPresentation.toneClassName,
321+
)}
322+
>
323+
<checksPresentation.Icon aria-hidden className="size-3.5" />
324+
<span className="whitespace-nowrap">{checksPresentation.label}</span>
325+
</span>
326+
) : (
327+
<GhostBar className="h-3 w-32" />
328+
)}
329+
</span>
328330
</nav>
329331
</div>
330332

0 commit comments

Comments
 (0)