Skip to content

Commit 385f66c

Browse files
committed
patch: lengthen loading visual card array
avoids footer components flashing on larger screens.
1 parent 5227b21 commit 385f66c

File tree

1 file changed

+4
-3
lines changed
  • app/[locale]/developers/tutorials

1 file changed

+4
-3
lines changed

app/[locale]/developers/tutorials/page.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ const TutorialsList = dynamic(() => import("./_components/tutorials"), {
2424
<div className="mt-8 w-full md:w-2/3">
2525
<div className="flex w-full flex-wrap gap-2 px-8 pb-16 pt-12 lg:grid lg:grid-cols-3 lg:gap-4 xl:grid-cols-4 2xl:grid-cols-5">
2626
{Array.from({ length: 30 }).map((_, index) => (
27-
<Skeleton key={index} className="h-8 rounded-full" />
27+
<Skeleton key={"tag" + index} className="h-8 rounded-full" />
2828
))}
2929
</div>
30-
<SkeletonCardContent className="p-8" />
31-
<SkeletonCardContent className="p-8" />
30+
{Array.from({ length: 5 }).map((_, index) => (
31+
<SkeletonCardContent key={"card" + index} className="p-8" />
32+
))}
3233
</div>
3334
),
3435
})

0 commit comments

Comments
 (0)