Skip to content

Commit a1fa4f2

Browse files
committed
fix: address CLS, add skeleton
1 parent 5519ca3 commit a1fa4f2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

app/components/Package/WeeklyDownloadStats.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ const config = computed<VueUiSparklineConfig>(() => {
264264
</script>
265265

266266
<template>
267-
<div class="space-y-8">
267+
<div class="space-y-8 h-[110px] motion-safe:h-[140px]">
268268
<CollapsibleSection id="downloads" :title="$t('package.downloads.title')">
269269
<template #actions>
270270
<ButtonBase
@@ -307,6 +307,10 @@ const config = computed<VueUiSparklineConfig>(() => {
307307
<SkeletonInline class="h-px w-full" />
308308
</div>
309309
</div>
310+
<!-- Animation toggle placeholder -->
311+
<div class="w-full hidden motion-safe:flex flex-1 items-end justify-end">
312+
<SkeletonInline class="h-[20px] w-30" />
313+
</div>
310314
</div>
311315
</template>
312316
</ClientOnly>

0 commit comments

Comments
 (0)