File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ const config = computed<VueUiSparklineConfig>(() => {
280280 <span v-else-if =" isLoadingWeeklyDownloads" class =" min-w-6 min-h-6 -m-1 p-1" />
281281 </template >
282282
283- <div class =" w-full overflow-hidden h-[110px] motion-safe:h-[140px] " >
283+ <div class =" w-full overflow-hidden" >
284284 <template v-if =" isLoadingWeeklyDownloads || hasWeeklyDownloads " >
285285 <div class =" relative" >
286286 <ClientOnly >
@@ -316,26 +316,30 @@ const config = computed<VueUiSparklineConfig>(() => {
316316 </template >
317317 </ClientOnly >
318318
319- <TooltipApp
319+ <div
320320 v-if =" hasWeeklyDownloads"
321- :text ="
322- hasSparklineAnimation
323- ? $t('package.trends.pause_animation')
324- : $t('package.trends.play_animation')
325- "
321+ class =" hidden motion-safe:block absolute top-0 inset-ie-0"
326322 >
327- <ButtonBase
328- size =" small"
329- class =" hidden motion-safe:inline-flex absolute top-0 inset-ie-0 !p-1 !border-0 !bg-transparent hover:!bg-transparent text-fg-subtle hover:text-fg transition-colors duration-200 focus-visible:outline-accent/70 rounded"
330- :classicon =" hasSparklineAnimation ? 'i-lucide:pause' : 'i-lucide:play'"
331- :aria-label ="
323+ <TooltipApp
324+ :text ="
332325 hasSparklineAnimation
333326 ? $t('package.trends.pause_animation')
334327 : $t('package.trends.play_animation')
335328 "
336- @click =" toggleSparklineAnimation"
337- />
338- </TooltipApp >
329+ >
330+ <ButtonBase
331+ size =" small"
332+ class =" !p-1 !border-0 !bg-transparent hover:!bg-transparent text-fg-subtle hover:text-fg transition-colors duration-200 focus-visible:outline-accent/70 rounded"
333+ :classicon =" hasSparklineAnimation ? 'i-lucide:pause' : 'i-lucide:play'"
334+ :aria-label ="
335+ hasSparklineAnimation
336+ ? $t('package.trends.pause_animation')
337+ : $t('package.trends.play_animation')
338+ "
339+ @click =" toggleSparklineAnimation"
340+ />
341+ </TooltipApp >
342+ </div >
339343 </div >
340344 </template >
341345 <p v-else class =" py-2 text-sm font-mono text-fg-subtle" >
You can’t perform that action at this time.
0 commit comments