Compare commits
1 Commits
5665bdeaa9
...
cd06005a1c
| Author | SHA1 | Date | |
|---|---|---|---|
| cd06005a1c |
@@ -33,11 +33,6 @@
|
|||||||
margin: 12px;
|
margin: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#strain-list .cards .card .tag-list--title {
|
|
||||||
font-size: 0.8em;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@media screen and (min-width: 769px) {
|
@media screen and (min-width: 769px) {
|
||||||
#strain-list .cards .card {
|
#strain-list .cards .card {
|
||||||
width: 45%;
|
width: 45%;
|
||||||
@@ -50,12 +45,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 860px) {
|
|
||||||
#strain-list .cards .card .tag-list--title {
|
|
||||||
font-size: 0.7em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#search-form .filters .select {
|
#search-form .filters .select {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
@@ -356,7 +345,6 @@
|
|||||||
.filter(Boolean)
|
.filter(Boolean)
|
||||||
.sort((a, b) => {
|
.sort((a, b) => {
|
||||||
if (a.score === b.score) {
|
if (a.score === b.score) {
|
||||||
// sort matching search score by adjusted rating
|
|
||||||
if (a.rating_adjusted === b.rating_adjusted) return 0;
|
if (a.rating_adjusted === b.rating_adjusted) return 0;
|
||||||
return a.rating_adjusted > b.rating_adjusted ? -1 : 1;
|
return a.rating_adjusted > b.rating_adjusted ? -1 : 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,8 +20,9 @@ async function build() {
|
|||||||
|
|
||||||
// calculate adjusted ratings
|
// calculate adjusted ratings
|
||||||
const totalMean =
|
const totalMean =
|
||||||
data.strains.reduce((acc, strain) => acc + strain.rating + strain.rating_count, 0) /
|
data.strains.reduce((acc, strain) => {
|
||||||
data.strains.length;
|
return acc + strain.rating + strain.rating_count;
|
||||||
|
}, 0) / data.strains.length;
|
||||||
|
|
||||||
data.strains = data.strains.map(strain => {
|
data.strains = data.strains.map(strain => {
|
||||||
const minRatings = 10;
|
const minRatings = 10;
|
||||||
|
|||||||
Reference in New Issue
Block a user