Skip to content

Commit 2fa7225

Browse files
authored
Fix "Make Algolia search results look good on mobile"
Fix "Make Algolia search results look good on mobile"
2 parents dac1c2d + c43d437 commit 2fa7225

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

pages/search.vue

+17-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
</p>
2828
</template>
2929
</ais-hits>
30+
<br />
3031
<ais-pagination />
3132
</ais-instant-search-ssr>
3233
</template>
@@ -70,7 +71,7 @@ export default {
7071
link: [
7172
{
7273
rel: 'stylesheet',
73-
href: 'https://cdn.jsdelivr.net/npm/instantsearch.css@7.3.1/themes/algolia-min.css',
74+
href: 'https://cdn.jsdelivr.net/npm/instantsearch.css@7.4.5/themes/algolia-min.css',
7475
},
7576
],
7677
}
@@ -92,3 +93,18 @@ export default {
9293
},
9394
}
9495
</script>
96+
97+
<style>
98+
@media (max-width: 767px) {
99+
.ais-Hits-item {
100+
padding: 10px;
101+
width: 100%;
102+
}
103+
}
104+
105+
@media (min-width: 768px) {
106+
.ais-Hits-item {
107+
width: 30%;
108+
}
109+
}
110+
</style>

0 commit comments

Comments
 (0)