We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
minWidth
1 parent a56574c commit c90685cCopy full SHA for c90685c
1 file changed
src/utils/index.ts
@@ -28,6 +28,8 @@ export function getColumnWidthForMeasurement<R, SR>(
28
return `max(${minWidth}px, ${width}px)`;
29
}
30
31
+ const useMinMax = !width.includes('minmax') && !width.includes('fit-content');
32
+
33
if (
34
maxWidth != null &&
35
// ignore maxWidth if it less than minWidth
@@ -38,11 +40,15 @@ export function getColumnWidthForMeasurement<R, SR>(
38
40
return width;
39
41
42
- if (!width.includes('minmax') && !width.includes('fit-content')) {
43
+ if (useMinMax) {
44
return `minmax(${width}, ${maxWidth}px)`;
45
46
47
48
49
+ return `minmax(${minWidth}px, ${width})`;
50
+ }
51
52
53
54
0 commit comments