Skip to content

Commit a56574c

Browse files
committed
fit-content does not do what I think it does
1 parent 52b9237 commit a56574c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/utils/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ export function getColumnWidthForMeasurement<R, SR>(
3333
// ignore maxWidth if it less than minWidth
3434
maxWidth >= minWidth
3535
) {
36-
// TODO: how to handle minWidth? can we use `clamp` with grid columns?
36+
// TODO: how to clamp width in CSS grid?
3737
if (width === 'max-content') {
38-
return `fit-content(${maxWidth}px)`; // fit-content = min(max-content, max(auto, maxWidth))
38+
return width;
3939
}
4040

4141
if (!width.includes('minmax') && !width.includes('fit-content')) {

0 commit comments

Comments
 (0)