Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion app/components/Package/TrendsChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1682,7 +1682,11 @@ watch(selectedMetric, value => {
</h2>

<!-- Chart panel (active metric) -->
<div role="region" aria-labelledby="trends-chart-title" class="min-h-[260px]">
<div
role="region"
aria-labelledby="trends-chart-title"
:class="isMobile ? 'min-h-[260px]' : 'min-h-[567px]'"
>
Comment thread
graphieros marked this conversation as resolved.
<ClientOnly v-if="chartData.dataset">
<div :data-pending="pending" :data-minimap-visible="maxDatapoints > 6">
<VueUiXy
Expand Down
5 changes: 1 addition & 4 deletions app/components/Package/WeeklyDownloadStats.vue
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,7 @@ const config = computed<VueUiSparklineConfig>(() => {

<!-- This placeholder bears the same dimensions as the PackageTrendsChart component -->
<!-- Avoids CLS when the dialog has transitioned -->
<div
v-if="!hasChartModalTransitioned"
class="w-full aspect-[390/634.5] sm:aspect-[718/622.797]"
/>
<div v-if="!hasChartModalTransitioned" class="w-full aspect-[390/634.5] sm:aspect-[718/647]" />
</PackageChartModal>
</template>

Expand Down
Loading