From f9d813c57b5fa8ee650ef8bfc72ba2a596af8633 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Mon, 25 Sep 2023 18:06:32 +0300 Subject: [PATCH] card grid wip fix --- src/components/CardGrid/styles.module.css | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/CardGrid/styles.module.css b/src/components/CardGrid/styles.module.css index c4b3499f..30c72811 100644 --- a/src/components/CardGrid/styles.module.css +++ b/src/components/CardGrid/styles.module.css @@ -1,7 +1,7 @@ .grid { - --min-cell-size: 270px; + /* --min-cell-size: 270px; */ + /* grid-template-columns: repeat(auto-fill, minmax(var(--min-cell-size), 1fr)); */ display: grid; - grid-template-columns: repeat(auto-fill, minmax(var(--min-cell-size), 1fr)); grid-auto-rows: 25em; grid-auto-flow: dense; grid-gap: var(--size-l) var(--size-l); @@ -10,7 +10,6 @@ @media screen and (max-width: 31.25em) { .grid { grid-template-columns: 1fr; - /* grid-template-columns: auto; */ - grid-gap: var(--size-l) 0; + grid-gap: var(--size-m); } }