We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4e0cf2 commit d4dfc55Copy full SHA for d4dfc55
1 file changed
src/utils/index.ts
@@ -41,8 +41,9 @@ export function getColumnWidthForMeasurement<R, SR>(
41
// ignore maxWidth if it less than minWidth
42
maxWidth >= minWidth
43
) {
44
+ // TODO: how to handle minWidth? can we use `clamp` with grid columns?
45
return width === 'max-content'
- ? `fit-content(${maxWidth}px)` // fit-content = min(max-content, max(auto, ${maxWidth}px))
46
+ ? `fit-content(${maxWidth}px)` // fit-content = min(max-content, max(auto, maxWidth))
47
: `minmax(${width}, ${maxWidth}px)`;
48
}
49
0 commit comments