@kolkrabbi/kol-component 0.102.0 → 0.102.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kolkrabbi/kol-component",
3
- "version": "0.102.0",
3
+ "version": "0.102.1",
4
4
  "description": "KOL design-system components — atoms through organisms, emitting canonical kol-* classes. Pairs with @kolkrabbi/kol-theme for styling.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -107,7 +107,10 @@ export default function ContentCollection({
107
107
  gridTemplateColumns: colsCls
108
108
  ? undefined
109
109
  : form === 'list'
110
- ? (listMin ? `repeat(auto-fill, minmax(${listMin}, 1fr))` : '1fr')
110
+ /* minmax(0, 1fr), never a bare 1fr (= minmax(auto, 1fr)): a truncated
111
+ * nowrap line handed its min-content width to the track and a /work row
112
+ * measured 3586px in a 1232px wall (CollectionItemMinWidth, 2026-08-27) */
113
+ ? (listMin ? `repeat(auto-fill, minmax(${listMin}, 1fr))` : 'minmax(0, 1fr)')
111
114
  : `repeat(auto-fill, minmax(${min}, 1fr))`,
112
115
  gap: g,
113
116
  }}
@@ -116,7 +119,10 @@ export default function ContentCollection({
116
119
  child == null ? null : (
117
120
  <li
118
121
  key={child.key ?? i}
119
- className={animate ? 'kol-collection-item' : undefined}
122
+ /* min-w-0 on every item: a grid item's min-width is auto by default,
123
+ * and auto = min-content, which is exactly what a truncated line must
124
+ * not get to claim */
125
+ className={`min-w-0 ${animate ? 'kol-collection-item' : ''}`.trim()}
120
126
  style={animate ? { animationDelay: `${i * 40}ms` } : undefined}
121
127
  >
122
128
  {child}