@kolkrabbi/kol-shell 0.73.0 → 0.74.0
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 +4 -4
- package/src/CatalogPage.jsx +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-shell",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.74.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The application shell",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"react-dom": "^18.3.0 || ^19.0.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@kolkrabbi/kol-component": "^0.
|
|
24
|
-
"@kolkrabbi/kol-framework": "^0.52.0",
|
|
23
|
+
"@kolkrabbi/kol-component": "^0.287.0",
|
|
25
24
|
"@kolkrabbi/kol-icons": "^0.41.0",
|
|
26
|
-
"@kolkrabbi/kol-
|
|
25
|
+
"@kolkrabbi/kol-framework": "^0.53.0",
|
|
26
|
+
"@kolkrabbi/kol-theme": "^0.183.0"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
|
29
29
|
"src",
|
package/src/CatalogPage.jsx
CHANGED
|
@@ -64,6 +64,7 @@ import WalkthroughPanel from './WalkthroughPanel.jsx'
|
|
|
64
64
|
* @param {string} cardVariant the grid card's variant, per page (default `catalog`); `toCard` may return `variant` per card
|
|
65
65
|
* @param {'catalog'|'file'} rowVariant the list row (default `catalog`, the 36px no-thumb row); `file` = the 48px thumb row, for a catalog whose grid shows a cover —
|
|
66
66
|
* its slots (`date` · `size` · `meta` · `selected`) come from `toCard` like everything else
|
|
67
|
+
* @param {number} listColumns the list grid's column ceiling (default 3 for a file or slide row, else 4); tracks never go under 240
|
|
67
68
|
* @param {'grid'|'stack'} listLayout the list's container (default `grid`, rows four across — monitor's ruling); `stack` = one row per line
|
|
68
69
|
* @param {ElementType} iconComponent icon renderer seam for ContentFilters
|
|
69
70
|
* @param {boolean} showCountOnlyWhenFiltering (default true)
|
|
@@ -174,6 +175,10 @@ export default function CatalogPage({
|
|
|
174
175
|
line, which is what a list of files is (MediaLibrary stacks); olina's deck list
|
|
175
176
|
rendered three 300px rows side by side (user: "why is it tiny?"). */
|
|
176
177
|
listLayout = PRESETS[preset]?.listLayout ?? 'grid',
|
|
178
|
+
/* the LIST grid's column ceiling (2026-10-22 — user: *"are you passing props on number of items/columns?"*). It was
|
|
179
|
+
a hard 4 — monitor's ruling for the 36px catalog row. A file or slide row is a contained tile with a 72 thumb, so
|
|
180
|
+
it defaults to 3 (user: *"change this one to 3"*). Tracks still never go under 240. */
|
|
181
|
+
listColumns = rowVariant === 'file' || rowVariant === 'slide' ? 3 : 4,
|
|
177
182
|
iconComponent,
|
|
178
183
|
showCountOnlyWhenFiltering = true,
|
|
179
184
|
filtersProps,
|
|
@@ -246,7 +251,7 @@ export default function CatalogPage({
|
|
|
246
251
|
/* the catalog grid is a CLASS (`.kol-catalog-grid`, kol-theme ≥0.138.0) reading
|
|
247
252
|
* `--kol-catalog-n`, the count measured above and set on PageShell — the same
|
|
248
253
|
* number the filter row's first group reads */
|
|
249
|
-
<div ref={layout === 'list' ? undefined : gridRef} className={layout === 'list' ? undefined : 'kol-catalog-grid'} style={layout === 'list' ? (listLayout === 'stack' ? { display: 'flex', flexDirection: 'column', gap: 8 } : { display: 'grid', gridTemplateColumns:
|
|
254
|
+
<div ref={layout === 'list' ? undefined : gridRef} className={layout === 'list' ? undefined : 'kol-catalog-grid'} style={layout === 'list' ? (listLayout === 'stack' ? { display: 'flex', flexDirection: 'column', gap: 8 } : { display: 'grid', gridTemplateColumns: `repeat(auto-fill, minmax(min(100%, max(240px, calc((100% - ${listColumns - 1} * 8px) / ${listColumns}))), 1fr))`, gap: 8 }) : undefined}>
|
|
250
255
|
{rows.map((item, i) => {
|
|
251
256
|
if (hidden.has(i)) return null
|
|
252
257
|
const c = cards[i]
|