From 820030b020ac7fefd037e927d50877673ae40aaf Mon Sep 17 00:00:00 2001 From: Ben Brady Date: Mon, 30 May 2022 22:50:13 +0100 Subject: [PATCH] Improved mobile support for the grid --- src/components/post_search/grid/grid.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/post_search/grid/grid.css b/src/components/post_search/grid/grid.css index 70b96e6..d2aa3b4 100644 --- a/src/components/post_search/grid/grid.css +++ b/src/components/post_search/grid/grid.css @@ -2,7 +2,11 @@ --IMAGE-SIZE: 12rem; } -/* @media screen and (max-aspect-ratio: 1/1) { */ +@media screen and (max-aspect-ratio: 1/1) { + :root { + --IMAGE-SIZE: 30vw !important; + } +} .post-list{ padding: 2rem 10vw 2rem 10vw;