From 3754ba535921ab7235c7cfe4ae20e9d2bf5c4ca4 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Mon, 9 Oct 2023 23:16:45 +0200 Subject: [PATCH] better blog browse on mobile --- gawa/static/custom.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gawa/static/custom.js b/gawa/static/custom.js index 82f232b..1453863 100644 --- a/gawa/static/custom.js +++ b/gawa/static/custom.js @@ -63,4 +63,9 @@ document.querySelectorAll(".reset-empty-button").forEach((element) => { document.querySelectorAll(".cardrow").forEach((element) => { var level = Math.min(Math.floor(screen.width / 200), 6); element.classList.add("row-cols-" + level); + if (screen.width < 580) { + element.querySelectorAll(".card").forEach((element) => { + element.classList.add("w-75"); + }); + } });