Skip to content

Commit 11fd407

Browse files
committed
fix: set a max width on quadrant wrapper
1 parent 8466bcb commit 11fd407

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

app/components/Compare/FacetQuadrantChart.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,14 +202,15 @@ const config = computed<VueUiQuadrantConfig>(() => {
202202
},
203203
labels: {
204204
axisLabels: {
205-
fontSize: 12,
205+
fontSize: 14,
206206
color: {
207207
positive: colors.value.fgSubtle,
208208
negative: colors.value.fgSubtle,
209209
},
210210
},
211211
plotLabels: {
212-
offsetY: 12,
212+
fontSize: 14,
213+
offsetY: 16,
213214
color: colors.value.fg,
214215
},
215216
quadrantLabels: {

app/pages/compare.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -354,11 +354,13 @@ useSeoMeta({
354354
<p v-else class="py-12 text-center text-fg-subtle">
355355
{{ $t('compare.packages.no_chartable_data') }}
356356
</p>
357-
<FacetQuadrantChart
358-
v-if="packages.length"
359-
:packages-data="packagesData"
360-
:packages="packages"
361-
/>
357+
<div class="max-w-[450px] mx-auto">
358+
<FacetQuadrantChart
359+
v-if="packages.length"
360+
:packages-data="packagesData"
361+
:packages="packages"
362+
/>
363+
</div>
362364
</TabPanel>
363365
</TabRoot>
364366

0 commit comments

Comments
 (0)