Skip to content

Commit be9ae01

Browse files
authored
fix: improve responsiveness on package page (#83)
1 parent 7a58de5 commit be9ae01

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

app/components/PackageDownloadStats.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const config = computed(() => ({
7979
</div>
8080
<div class="w-full overflow-hidden">
8181
<ClientOnly>
82-
<VueUiSparkline class="max-w-full" :dataset :config />
82+
<VueUiSparkline class="w-full max-w-xs" :dataset :config />
8383
<template #fallback>
8484
<!-- Skeleton matching sparkline layout: title row + chart with data label -->
8585
<div class="min-h-[100px]">
@@ -122,8 +122,4 @@ const config = computed(() => ({
122122
Geist Mono,
123123
monospace !important;
124124
}
125-
.vue-ui-sparkline,
126-
.vue-ui-sparkline svg {
127-
max-width: 100% !important;
128-
}
129125
</style>

app/pages/[...package].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ defineOgImageComponent('Package', {
585585

586586
<!-- Install command with package manager selector -->
587587
<section aria-labelledby="install-heading" class="mb-8">
588-
<div class="flex items-center justify-between mb-3">
588+
<div class="flex flex-wrap items-center justify-between mb-3">
589589
<h2 id="install-heading" class="text-xs text-fg-subtle uppercase tracking-wider">
590590
Install
591591
</h2>

0 commit comments

Comments
 (0)