From 44fd6bce34ed27b1b842201056d1187a89d68a97 Mon Sep 17 00:00:00 2001 From: conanak99 Date: Mon, 27 Feb 2023 22:26:19 +0800 Subject: [PATCH] make the grid responsive --- extensions/gallery/script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/gallery/script.py b/extensions/gallery/script.py index 5e0da084..3743dd04 100644 --- a/extensions/gallery/script.py +++ b/extensions/gallery/script.py @@ -10,7 +10,7 @@ def generate_html(): .character-gallery { margin: 1rem 0; display: grid; - grid-template-columns: repeat(4, 1fr); + grid-template-columns: repeat(4, minmax(150px, 1fr)); grid-column-gap: 0.4rem; grid-row-gap: 1.2rem; }