File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @cloudfour/patterns ' : patch
3
+ ---
4
+
5
+ Fix issue where Deck objects would unexpectedly stretch columns at wider viewports
Original file line number Diff line number Diff line change 18
18
* We define a media query for our initial grid so child elements will flex
19
19
* for viewports smaller than our minimum column size.
20
20
*
21
- * Our use of `auto-fit` means columns will be automatically created as space
22
- * allows.
21
+ * `auto-fill` creates extra columns as space allows, and will not stretch
22
+ * columns to fill empty space (which makes sure adjacent objects with
23
+ * differing item counts will stay aligned).
23
24
*/
24
25
25
26
@media (width >= breakpoint .$xs ) {
26
27
grid-template-columns : repeat (
27
- auto-fit ,
28
+ auto-fill ,
28
29
minmax (#{size .$width-card-column-min } , 1fr )
29
30
);
30
31
}
You can’t perform that action at this time.
0 commit comments