better blog browse on mobile
This commit is contained in:
parent
327200a4b0
commit
3754ba5359
|
@ -63,4 +63,9 @@ document.querySelectorAll(".reset-empty-button").forEach((element) => {
|
||||||
document.querySelectorAll(".cardrow").forEach((element) => {
|
document.querySelectorAll(".cardrow").forEach((element) => {
|
||||||
var level = Math.min(Math.floor(screen.width / 200), 6);
|
var level = Math.min(Math.floor(screen.width / 200), 6);
|
||||||
element.classList.add("row-cols-" + level);
|
element.classList.add("row-cols-" + level);
|
||||||
|
if (screen.width < 580) {
|
||||||
|
element.querySelectorAll(".card").forEach((element) => {
|
||||||
|
element.classList.add("w-75");
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue