gantt-lib 0.85.1 → 0.86.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/dist/index.d.mts CHANGED
@@ -710,7 +710,7 @@ interface TaskListProps {
710
710
  rowHeight: number;
711
711
  /** Height of the header row in pixels (must match Gantt chart's headerHeight) */
712
712
  headerHeight: number;
713
- /** Width of the task list overlay in pixels. Values below MIN_TASK_LIST_WIDTH are clamped. */
713
+ /** Width of the task list overlay in pixels. Values below the visible column width are clamped. */
714
714
  taskListWidth?: number;
715
715
  /** Callback when tasks are modified via inline edit. Receives array of changed tasks. */
716
716
  onTasksChange?: (tasks: Task[]) => void;
package/dist/index.d.ts CHANGED
@@ -710,7 +710,7 @@ interface TaskListProps {
710
710
  rowHeight: number;
711
711
  /** Height of the header row in pixels (must match Gantt chart's headerHeight) */
712
712
  headerHeight: number;
713
- /** Width of the task list overlay in pixels. Values below MIN_TASK_LIST_WIDTH are clamped. */
713
+ /** Width of the task list overlay in pixels. Values below the visible column width are clamped. */
714
714
  taskListWidth?: number;
715
715
  /** Callback when tasks are modified via inline edit. Receives array of changed tasks. */
716
716
  onTasksChange?: (tasks: Task[]) => void;
package/dist/index.js CHANGED
@@ -6575,7 +6575,7 @@ var TaskList = ({
6575
6575
  tasks,
6576
6576
  rowHeight,
6577
6577
  headerHeight,
6578
- taskListWidth = MIN_TASK_LIST_WIDTH,
6578
+ taskListWidth,
6579
6579
  onTasksChange,
6580
6580
  selectedTaskId,
6581
6581
  onTaskSelect,
@@ -7148,7 +7148,8 @@ var TaskList = ({
7148
7148
  () => resolvedColumns.reduce((sum, col) => sum + (col.width ?? 120), 0),
7149
7149
  [resolvedColumns]
7150
7150
  );
7151
- const effectiveTaskListWidth = Math.max(taskListWidth, MIN_TASK_LIST_WIDTH, resolvedColumnWidthTotal);
7151
+ const requestedTaskListWidth = taskListWidth ?? Math.min(MIN_TASK_LIST_WIDTH, resolvedColumnWidthTotal);
7152
+ const effectiveTaskListWidth = Math.max(requestedTaskListWidth, resolvedColumnWidthTotal);
7152
7153
  const tableHeaderHeight = headerHeight + 1;
7153
7154
  return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
7154
7155
  "div",