Skip to content

Commit 2fdd461

Browse files
committed
Fix sites in grid not having all the same width
Due to [`1fr` = `minmax(auto, 1fr)`](https://stackoverflow.com/questions/52785750/prevent-grid-area-from-expanding-causing-whole-page-to-scroll).
1 parent 0454507 commit 2fdd461

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sass/layout/_sites.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
.sites {
22
display: grid;
3+
grid-template-columns: minmax(0, 1fr);
34
grid-gap: 1.5rem;
45

56
@media (--tablet-7) {
6-
grid-template-columns: 1fr 1fr;
7+
grid-template-columns: repeat(2, minmax(0, 1fr));
78
grid-gap: 2rem;
89
align-items: stretch;
910
}

0 commit comments

Comments
 (0)