Skip to content

Commit c0a4059

Browse files
committed
fix: restore deck group masonry columns
The card-size refactor set the group container's column-width to min(20rem, 100%). column-width only accepts a <length>, not a percentage, so the value was invalid and the layout collapsed to a single column. Use a plain rem length (size.widthRem). Cards still clamp to the viewport via their own min(width, 100%), and column-width naturally drops to one column on narrow screens.
1 parent 1a0504d commit c0a4059

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎assets/react/src/pages/decks/deck-stack-grid.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export function DeckGroupGrid({
5757
<div
5858
className="mx-auto gap-8"
5959
style={{
60-
columnWidth: `min(${size.widthRem}rem, 100%)`,
60+
columnWidth: `${size.widthRem}rem`,
6161
maxWidth: `calc(${columns} * ${size.widthRem}rem + ${Math.max(columns - 1, 0)} * 2rem)`,
6262
}}
6363
>

0 commit comments

Comments
 (0)