@bmsuisse/datagrid 0.35.1 → 0.35.2
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/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3468,10 +3468,10 @@ function DataGrid({
|
|
|
3468
3468
|
function pinnedCellProps(column, area = "body") {
|
|
3469
3469
|
const bg = area === "header" ? "bg-muted" : "bg-background";
|
|
3470
3470
|
if (column.pinned === "left") {
|
|
3471
|
-
return { className: `sticky z-10 ${bg}`, style: { left: leftPinnedOffsets.get(column.id), width: columnSize(column.id) } };
|
|
3471
|
+
return { className: `sticky z-10 ${bg}`, style: { left: leftPinnedOffsets.get(column.id), width: columnSize(column.id), minWidth: columnSize(column.id) } };
|
|
3472
3472
|
}
|
|
3473
3473
|
if (column.pinned === "right") {
|
|
3474
|
-
return { className: `sticky z-10 ${bg}`, style: { right: rightPinnedOffsets.get(column.id), width: columnSize(column.id) } };
|
|
3474
|
+
return { className: `sticky z-10 ${bg}`, style: { right: rightPinnedOffsets.get(column.id), width: columnSize(column.id), minWidth: columnSize(column.id) } };
|
|
3475
3475
|
}
|
|
3476
3476
|
if (enableColumnResizing) return { style: { width: columnSize(column.id) } };
|
|
3477
3477
|
return { style: column.width ? { width: column.width } : void 0 };
|
|
@@ -3483,7 +3483,7 @@ function DataGrid({
|
|
|
3483
3483
|
return {
|
|
3484
3484
|
className: `${base} ${bg}`,
|
|
3485
3485
|
classNameOdd: `${base} ${bgOdd}`,
|
|
3486
|
-
style: { [side]: offset, width }
|
|
3486
|
+
style: { [side]: offset, width, minWidth: width }
|
|
3487
3487
|
};
|
|
3488
3488
|
}
|
|
3489
3489
|
const detailCellProps = structuralCellProps("left", 0, DETAIL_COLUMN_WIDTH);
|