Skip to content

Commit c43d437

Browse files
author
Daniel Fjeldstad
committed
Fix responsive Algolia results list
1 parent 6196020 commit c43d437

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

pages/search.vue

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,17 @@ export default {
9494
}
9595
</script>
9696

97-
<style scoped>
98-
li {
99-
width: 100vw !important;
97+
<style>
98+
@media (max-width: 767px) {
99+
.ais-Hits-item {
100+
padding: 10px;
101+
width: 100%;
102+
}
100103
}
101104
102-
@media (max-width: 768px) {
105+
@media (min-width: 768px) {
103106
.ais-Hits-item {
104-
width: 100vw !important;
107+
width: 30%;
105108
}
106109
}
107110
</style>

0 commit comments

Comments
 (0)