Skip to content

Commit be04ee2

Browse files
committed
fix max-width concerns in responsive grid
1 parent d1b41f0 commit be04ee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/responsive-grid/calc-responsive-grid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const calcResponsiveGrid = (
6363

6464
// If widthRatio exceeds available space, adjust it
6565
if (widthRatio > availableWidth) {
66-
widthRatio = availableWidth;
66+
widthRatio = Math.max(1, availableWidth);
6767
}
6868
}
6969

0 commit comments

Comments
 (0)