From e20c3ee518ee75d8df29d5f51bb8a27a6b01efbd Mon Sep 17 00:00:00 2001 From: trashtemp <96388163+trashtemp@users.noreply.github.com> Date: Sun, 26 Dec 2021 20:47:34 +0100 Subject: [PATCH] fix(home): fixed grid on home screen --- src/pages/home/Home.module.scss | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/pages/home/Home.module.scss b/src/pages/home/Home.module.scss index f2ed2a24..501cc92a 100644 --- a/src/pages/home/Home.module.scss +++ b/src/pages/home/Home.module.scss @@ -26,16 +26,10 @@ } .actions { - // grid-template-columns: repeat(2, 300px); - // grid-template-columns: 300px 300px; - grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); - grid-column: span 2; - gap: 16px; - //margin: auto; display: grid; - width: fit-content; - align-items: stretch; - flex-direction: column; + grid-template-columns: repeat(2, 1fr); + gap: 16px; + max-width: 650px; margin-bottom: 20px; a { @@ -49,6 +43,10 @@ margin: 0; } } + + @media (max-width: 600px) { + grid-template-columns: repeat(1, 1fr); + } } } }