@equinor/apollo-components 1.11.1 → 1.11.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 CHANGED
@@ -461,7 +461,8 @@ var HeaderDiv = import_styled_components11.default.div`
461
461
  var HeaderCell = ({ header }) => {
462
462
  var _a;
463
463
  const style = {
464
- width: header.column.getSize()
464
+ width: header.column.getSize(),
465
+ zIndex: 10
465
466
  };
466
467
  const cellProps = {
467
468
  style,
@@ -880,8 +881,9 @@ function VirtualTable({
880
881
  const { rows } = table.getRowModel();
881
882
  const rowVirtualizer = (0, import_react_virtual.useVirtualizer)({
882
883
  count: rows.length,
883
- estimateSize: () => 35,
884
- getScrollElement: () => containerRef.current
884
+ estimateSize: () => 48,
885
+ getScrollElement: () => containerRef.current,
886
+ overscan: 5
885
887
  });
886
888
  const virtualRows = rowVirtualizer.getVirtualItems();
887
889
  const paddingTop = virtualRows.length > 0 ? ((_a = virtualRows == null ? void 0 : virtualRows[0]) == null ? void 0 : _a.start) || 0 : 0;
package/dist/index.mjs CHANGED
@@ -415,7 +415,8 @@ var HeaderDiv = styled11.div`
415
415
  var HeaderCell = ({ header }) => {
416
416
  var _a;
417
417
  const style = {
418
- width: header.column.getSize()
418
+ width: header.column.getSize(),
419
+ zIndex: 10
419
420
  };
420
421
  const cellProps = {
421
422
  style,
@@ -834,8 +835,9 @@ function VirtualTable({
834
835
  const { rows } = table.getRowModel();
835
836
  const rowVirtualizer = useVirtualizer({
836
837
  count: rows.length,
837
- estimateSize: () => 35,
838
- getScrollElement: () => containerRef.current
838
+ estimateSize: () => 48,
839
+ getScrollElement: () => containerRef.current,
840
+ overscan: 5
839
841
  });
840
842
  const virtualRows = rowVirtualizer.getVirtualItems();
841
843
  const paddingTop = virtualRows.length > 0 ? ((_a = virtualRows == null ? void 0 : virtualRows[0]) == null ? void 0 : _a.start) || 0 : 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/apollo-components",
3
- "version": "1.11.1",
3
+ "version": "1.11.2",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",