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