@particle-academy/fancy-sheets 0.7.5 → 0.7.6
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/README.md +2 -0
- package/dist/index.cjs +14 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1555,7 +1555,7 @@ function reducer(state, action) {
|
|
|
1555
1555
|
};
|
|
1556
1556
|
}
|
|
1557
1557
|
case "SET_WORKBOOK":
|
|
1558
|
-
return { ...state, workbook: action.workbook };
|
|
1558
|
+
return { ...state, workbook: recalculateWorkbook(action.workbook) };
|
|
1559
1559
|
default:
|
|
1560
1560
|
return state;
|
|
1561
1561
|
}
|
|
@@ -2254,7 +2254,13 @@ function SpreadsheetGrid({ className }) {
|
|
|
2254
2254
|
return /* @__PURE__ */ jsxs(
|
|
2255
2255
|
"div",
|
|
2256
2256
|
{
|
|
2257
|
-
className:
|
|
2257
|
+
className: cn(
|
|
2258
|
+
"flex",
|
|
2259
|
+
// Frozen rows need a solid background so scrolling content
|
|
2260
|
+
// doesn't bleed through any cell-level transparency
|
|
2261
|
+
// (highlight overlays, alpha format colors, etc.).
|
|
2262
|
+
isFrozenRow && "bg-white dark:bg-zinc-900"
|
|
2263
|
+
),
|
|
2258
2264
|
style: isFrozenRow ? {
|
|
2259
2265
|
position: "sticky",
|
|
2260
2266
|
top: rowHeight + rowIdx * rowHeight,
|
|
@@ -2268,6 +2274,12 @@ function SpreadsheetGrid({ className }) {
|
|
|
2268
2274
|
return /* @__PURE__ */ jsx(
|
|
2269
2275
|
"div",
|
|
2270
2276
|
{
|
|
2277
|
+
className: cn(
|
|
2278
|
+
// Same solid-background guarantee for frozen
|
|
2279
|
+
// columns — keeps the column opaque while content
|
|
2280
|
+
// scrolls horizontally underneath.
|
|
2281
|
+
isFrozenCol && "bg-white dark:bg-zinc-900"
|
|
2282
|
+
),
|
|
2271
2283
|
style: isFrozenCol ? {
|
|
2272
2284
|
position: "sticky",
|
|
2273
2285
|
left: 48 + Array.from({ length: colIdx }, (_3, c) => getColumnWidth(c)).reduce((a, b) => a + b, 0),
|