We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
fit-content
1 parent 52b9237 commit a56574cCopy full SHA for a56574c
1 file changed
src/utils/index.ts
@@ -33,9 +33,9 @@ export function getColumnWidthForMeasurement<R, SR>(
33
// ignore maxWidth if it less than minWidth
34
maxWidth >= minWidth
35
) {
36
- // TODO: how to handle minWidth? can we use `clamp` with grid columns?
+ // TODO: how to clamp width in CSS grid?
37
if (width === 'max-content') {
38
- return `fit-content(${maxWidth}px)`; // fit-content = min(max-content, max(auto, maxWidth))
+ return width;
39
}
40
41
if (!width.includes('minmax') && !width.includes('fit-content')) {
0 commit comments