Skip to content

Commit bf5614b

Browse files
committed
smoothing also the mobile view
1 parent a6c9578 commit bf5614b

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

app/components/Package/TrendsChart.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1584,14 +1584,15 @@ watch(selectedMetric, value => {
15841584
:aria-busy="activeMetricState.pending ? 'true' : 'false'"
15851585
>
15861586
<div class="w-full mb-4 flex flex-col gap-3">
1587-
<div class="flex flex-col sm:flex-row gap-3 sm:gap-2 sm:items-end">
1587+
<div class="grid grid-cols-2 sm:flex sm:flex-row gap-3 sm:gap-2 sm:items-end">
15881588
<SelectField
15891589
v-if="showFacetSelector"
15901590
id="trends-metric-select"
15911591
v-model="selectedMetric"
15921592
:disabled="activeMetricState.pending"
15931593
:items="METRICS.map(m => ({ label: m.label, value: m.id }))"
15941594
:label="$t('package.trends.facet')"
1595+
block
15951596
/>
15961597

15971598
<SelectField
@@ -1600,9 +1601,10 @@ watch(selectedMetric, value => {
16001601
v-model="selectedGranularity"
16011602
:disabled="activeMetricState.pending"
16021603
:items="granularityItems"
1604+
block
16031605
/>
16041606

1605-
<div class="grid grid-cols-2 gap-2 flex-1">
1607+
<div class="col-span-2 sm:col-span-1 grid grid-cols-2 gap-2 flex-1">
16061608
<div class="flex flex-col gap-1">
16071609
<label
16081610
for="startDate"
@@ -1672,7 +1674,7 @@ watch(selectedMetric, value => {
16721674
/>
16731675
{{ $t('package.trends.data_correction') }}
16741676
</button>
1675-
<div v-if="showCorrectionControls" class="flex items-end gap-3">
1677+
<div v-if="showCorrectionControls" class="grid grid-cols-2 sm:flex items-end gap-3">
16761678
<label class="flex flex-col gap-1 flex-1">
16771679
<span class="text-2xs font-mono text-fg-subtle tracking-wide uppercase">
16781680
{{ $t('package.trends.average_window') }}

0 commit comments

Comments
 (0)