gantt-task-react-v 1.7.4 → 1.7.5

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.
@@ -5703,7 +5703,8 @@ const TaskListTableHeadersDefaultInner = ({
5703
5703
  position: "sticky",
5704
5704
  left: leftOffset,
5705
5705
  zIndex: 2,
5706
- backgroundColor: "var(--gantt-table-header-background-color, #fff)"
5706
+ backgroundColor: "var(--gantt-table-header-background-color, #fff)",
5707
+ paddingRight: 8
5707
5708
  };
5708
5709
  leftOffset += columns[i].width;
5709
5710
  }
@@ -5715,7 +5716,8 @@ const TaskListTableHeadersDefaultInner = ({
5715
5716
  position: "sticky",
5716
5717
  right: rightOffset,
5717
5718
  zIndex: 2,
5718
- backgroundColor: "var(--gantt-table-header-background-color, #fff)"
5719
+ backgroundColor: "var(--gantt-table-header-background-color, #fff)",
5720
+ paddingLeft: 8
5719
5721
  };
5720
5722
  rightOffset += columns[i].width;
5721
5723
  }
@@ -10475,13 +10477,15 @@ const TaskListTableRowInner = forwardRef(
10475
10477
  }, [isCut2, moveOverPosition, isOverlay2, isDragging]);
10476
10478
  const pinnedStyles = useMemo(() => {
10477
10479
  const result = {};
10480
+ const pinnedBg = backgroundColor || "var(--gantt-background-color, #fff)";
10478
10481
  for (let i = 0; i < columns.length; i++) {
10479
10482
  if (columns[i].pinned === "left") {
10480
10483
  result[i] = {
10481
10484
  position: "relative",
10482
10485
  transform: "translateX(var(--pinned-translate-left, 0px))",
10483
10486
  zIndex: 2,
10484
- backgroundColor: "inherit"
10487
+ backgroundColor: pinnedBg,
10488
+ paddingRight: 8
10485
10489
  };
10486
10490
  }
10487
10491
  }
@@ -10491,12 +10495,13 @@ const TaskListTableRowInner = forwardRef(
10491
10495
  position: "relative",
10492
10496
  transform: "translateX(var(--pinned-translate-right, 0px))",
10493
10497
  zIndex: 2,
10494
- backgroundColor: "inherit"
10498
+ backgroundColor: pinnedBg,
10499
+ paddingLeft: 8
10495
10500
  };
10496
10501
  }
10497
10502
  }
10498
10503
  return result;
10499
- }, [columns]);
10504
+ }, [columns, backgroundColor]);
10500
10505
  return /* @__PURE__ */ jsxs(
10501
10506
  "div",
10502
10507
  {
@@ -5720,7 +5720,8 @@
5720
5720
  position: "sticky",
5721
5721
  left: leftOffset,
5722
5722
  zIndex: 2,
5723
- backgroundColor: "var(--gantt-table-header-background-color, #fff)"
5723
+ backgroundColor: "var(--gantt-table-header-background-color, #fff)",
5724
+ paddingRight: 8
5724
5725
  };
5725
5726
  leftOffset += columns[i].width;
5726
5727
  }
@@ -5732,7 +5733,8 @@
5732
5733
  position: "sticky",
5733
5734
  right: rightOffset,
5734
5735
  zIndex: 2,
5735
- backgroundColor: "var(--gantt-table-header-background-color, #fff)"
5736
+ backgroundColor: "var(--gantt-table-header-background-color, #fff)",
5737
+ paddingLeft: 8
5736
5738
  };
5737
5739
  rightOffset += columns[i].width;
5738
5740
  }
@@ -10492,13 +10494,15 @@
10492
10494
  }, [isCut2, moveOverPosition, isOverlay2, isDragging]);
10493
10495
  const pinnedStyles = React.useMemo(() => {
10494
10496
  const result = {};
10497
+ const pinnedBg = backgroundColor || "var(--gantt-background-color, #fff)";
10495
10498
  for (let i = 0; i < columns.length; i++) {
10496
10499
  if (columns[i].pinned === "left") {
10497
10500
  result[i] = {
10498
10501
  position: "relative",
10499
10502
  transform: "translateX(var(--pinned-translate-left, 0px))",
10500
10503
  zIndex: 2,
10501
- backgroundColor: "inherit"
10504
+ backgroundColor: pinnedBg,
10505
+ paddingRight: 8
10502
10506
  };
10503
10507
  }
10504
10508
  }
@@ -10508,12 +10512,13 @@
10508
10512
  position: "relative",
10509
10513
  transform: "translateX(var(--pinned-translate-right, 0px))",
10510
10514
  zIndex: 2,
10511
- backgroundColor: "inherit"
10515
+ backgroundColor: pinnedBg,
10516
+ paddingLeft: 8
10512
10517
  };
10513
10518
  }
10514
10519
  }
10515
10520
  return result;
10516
- }, [columns]);
10521
+ }, [columns, backgroundColor]);
10517
10522
  return /* @__PURE__ */ jsxRuntime.jsxs(
10518
10523
  "div",
10519
10524
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantt-task-react-v",
3
- "version": "1.7.4",
3
+ "version": "1.7.5",
4
4
  "description": "Interactive Gantt Chart for React with TypeScript.",
5
5
  "author": "aguilanbon",
6
6
  "homepage": "https://github.com/aguilanbon/gantt-task-react-v",