Skip to content

Commit 99fb64f

Browse files
committed
fix(web): PR loading skeleton placeholder collapses to the checks icon
1 parent b3bd938 commit 99fb64f

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

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

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -312,19 +312,22 @@ export function PullRequestDetailGhost({
312312
</Toggle>
313313
))}
314314
</ToggleGroup>
315-
<span className="ml-auto flex min-w-0 flex-1 items-center justify-end">
315+
<span
316+
className={cn(
317+
"ml-auto flex h-4 min-w-0 flex-1 flex-wrap content-start items-center justify-end gap-x-1.5 overflow-hidden text-xs",
318+
checksPresentation?.toneClassName,
319+
)}
320+
>
316321
{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-
>
322+
<>
323323
<checksPresentation.Icon aria-hidden className="size-3.5" />
324324
<span className="whitespace-nowrap">{checksPresentation.label}</span>
325-
</span>
325+
</>
326326
) : (
327-
<GhostBar className="h-3 w-32" />
327+
<>
328+
<GhostBar className="my-px size-3.5 rounded-full" />
329+
<GhostBar className="w-28" />
330+
</>
328331
)}
329332
</span>
330333
</nav>

0 commit comments

Comments
 (0)