Skip to content

Commit d4dfc55

Browse files
committed
comment
1 parent f4e0cf2 commit d4dfc55

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/utils/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ export function getColumnWidthForMeasurement<R, SR>(
4141
// ignore maxWidth if it less than minWidth
4242
maxWidth >= minWidth
4343
) {
44+
// TODO: how to handle minWidth? can we use `clamp` with grid columns?
4445
return width === 'max-content'
45-
? `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))
4647
: `minmax(${width}, ${maxWidth}px)`;
4748
}
4849

0 commit comments

Comments
 (0)