[SiteGen] Fix random browser bug relating to order by rewrite

This commit is contained in:
Ducko 2021-07-02 19:35:36 +01:00 committed by Alyxia Sother
parent 1a1e3fcbae
commit ae6c36373f
No known key found for this signature in database
GPG Key ID: 355968D14144B739
1 changed files with 2 additions and 6 deletions

View File

@ -110,10 +110,6 @@
}
}
.container > :not(.gm-store-card) {
order: -999999999999;
}
.flex-break {
flex-basis: 100%;
}
@ -466,12 +462,12 @@
sortSelectEl.oninput = () => {
switch (sortSelectEl.value) {
case 'Stars': {
cards.forEach((x) => { x.style.order = '-' + x.getAttribute('data-stars'); });
cards.forEach((x) => { x.style.order = 9999999999 - parseInt(x.getAttribute('data-stars')); });
break;
}
case 'Last Updated': {
cards.forEach((x) => { x.style.order = '-' + x.getAttribute('data-last-updated'); });
cards.forEach((x) => { x.style.order = 9999999999 - parseInt(x.getAttribute('data-last-updated')); });
break;
}