Skip to content

Commit 2f7001a

Browse files
committed
fix: spacing issue on small screens
1 parent 419a6dc commit 2f7001a

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

static/sass/_pattern_homepage.scss

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,11 @@
162162
@media screen and (width < $breakpoint-small) {
163163
display: flex !important;
164164
flex-direction: column;
165-
height: 100%;
166-
// Opt out of the 4-row subgrid span too, otherwise the spanned grid
167-
// tracks absorb the margin that separates stacked cards.
165+
// Opt out of the 4-row subgrid span, and stop the card stretching to
166+
// fill its grid track — otherwise a taller card grows down into the next
167+
// one and swallows the gap between them.
168168
grid-row: auto;
169+
align-self: start;
169170

170171
& + & {
171172
margin-top: 1.5rem;
@@ -176,12 +177,6 @@
176177
bottom: auto !important;
177178
top: auto !important;
178179
transform: none !important;
179-
flex: 0 0 auto;
180-
181-
&:last-child {
182-
margin-top: auto;
183-
flex: 1 1 auto;
184-
}
185180
}
186181
}
187182

0 commit comments

Comments
 (0)