gantt-task-react-v 1.0.38 → 1.0.39

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.
@@ -5296,7 +5296,8 @@ const useTableListResize = (clientColumns, canMoveTasks, onResizeColumn, ganttRe
5296
5296
  titleCellWidth,
5297
5297
  dateCellWidth,
5298
5298
  dependenciesCellWidth,
5299
- actionColumnWidth
5299
+ actionColumnWidth,
5300
+ tableWidth: defaultTableWidth = 400
5300
5301
  } = theme.distances;
5301
5302
  const defaultColumns = useMemo(() => {
5302
5303
  return [
@@ -5332,6 +5333,10 @@ const useTableListResize = (clientColumns, canMoveTasks, onResizeColumn, ganttRe
5332
5333
  const [columnsState, setColumns] = useState(
5333
5334
  clientColumns || defaultColumns
5334
5335
  );
5336
+ const taskListWidth = useMemo(
5337
+ () => columnsState.reduce((res, { width }) => res + width, 0) + extraWidth,
5338
+ [columnsState, extraWidth]
5339
+ );
5335
5340
  useEffect(() => {
5336
5341
  if (clientColumns) {
5337
5342
  setColumns([...clientColumns]);
@@ -5339,19 +5344,23 @@ const useTableListResize = (clientColumns, canMoveTasks, onResizeColumn, ganttRe
5339
5344
  const newColumnIds = clientColumns.map((col) => col.id);
5340
5345
  const widthOfAddedColumns = clientColumns.filter((col) => !currentColumnIds.includes(col.id)).reduce((res, { width }) => res + width, 0);
5341
5346
  const widthOfRemovedColumns = clientColumns.filter((col) => !newColumnIds.includes(col.id)).reduce((res, { width }) => res + width, 0);
5342
- setTableWidth(
5343
- (prev) => Math.min(
5344
- prev + widthOfAddedColumns - widthOfRemovedColumns,
5345
- clientColumns.reduce((res, { width }) => res + width, 0) + extraWidth
5346
- )
5347
- );
5347
+ setTableWidth((prev) => {
5348
+ const newWidth = prev + widthOfAddedColumns - widthOfRemovedColumns;
5349
+ return Math.max(newWidth, 100);
5350
+ });
5348
5351
  }
5349
- }, [clientColumns, extraWidth]);
5352
+ }, [clientColumns, extraWidth, taskListWidth]);
5350
5353
  const [tableResizeEvent, setTableResizeEvent] = useState(null);
5351
5354
  const [columnResizeEvent, setColumnResizeEvent] = useState(null);
5352
- const [tableWidthState, setTableWidth] = useState(
5353
- () => columnsState.reduce((res, { width }) => res + width, 0) + extraWidth
5354
- );
5355
+ const [tableWidthState, setTableWidth] = useState(() => {
5356
+ const calculatedWidth = columnsState.reduce((res, { width }) => res + width, 0) + extraWidth;
5357
+ const MAX_INITIAL_WIDTH = 600;
5358
+ if (calculatedWidth <= MAX_INITIAL_WIDTH) {
5359
+ return calculatedWidth;
5360
+ } else {
5361
+ return defaultTableWidth;
5362
+ }
5363
+ });
5355
5364
  const onTableResizeStart = (clientX) => {
5356
5365
  const newTableResizeEvent = {
5357
5366
  initialClientX: clientX,
@@ -5370,7 +5379,6 @@ const useTableListResize = (clientColumns, canMoveTasks, onResizeColumn, ganttRe
5370
5379
  };
5371
5380
  const isResizeTableInProgress = Boolean(tableResizeEvent);
5372
5381
  const isResizeColumnInProgress = Boolean(columnResizeEvent);
5373
- const taskListWidth = columnsState.reduce((res, { width }) => res + width, 0) + extraWidth;
5374
5382
  useEffect(() => {
5375
5383
  if (!isResizeTableInProgress) {
5376
5384
  return void 0;
@@ -5378,9 +5386,15 @@ const useTableListResize = (clientColumns, canMoveTasks, onResizeColumn, ganttRe
5378
5386
  const handleMove = (clientX) => {
5379
5387
  const moveDelta = clientX - tableResizeEvent.initialClientX;
5380
5388
  setTableWidth(() => {
5389
+ const newWidth = tableResizeEvent.initialTableWidth + moveDelta;
5390
+ const ganttContainer = ganttRef.current;
5391
+ const containerWidth = ganttContainer ? ganttContainer.offsetWidth : 1e3;
5392
+ const maxTableWidth = Math.max(containerWidth - 100, taskListWidth);
5381
5393
  return Math.min(
5382
- Math.max(tableResizeEvent.initialTableWidth + moveDelta, 50),
5383
- taskListWidth
5394
+ Math.max(newWidth, 50),
5395
+ // Minimum width of 50px
5396
+ maxTableWidth
5397
+ // Allow table to expand much more
5384
5398
  );
5385
5399
  });
5386
5400
  };
@@ -5440,12 +5454,18 @@ const useTableListResize = (clientColumns, canMoveTasks, onResizeColumn, ganttRe
5440
5454
  return newColumns;
5441
5455
  });
5442
5456
  if (previousColumnWidth !== newColumnWidth) {
5443
- setTableWidth(
5444
- () => Math.min(
5445
- Math.max(columnResizeEvent.initialTableWidth + moveDelta, 50),
5446
- taskListWidth
5447
- )
5448
- );
5457
+ setTableWidth(() => {
5458
+ const newTableWidth = columnResizeEvent.initialTableWidth + moveDelta;
5459
+ const ganttContainer = ganttRef.current;
5460
+ const containerWidth = ganttContainer ? ganttContainer.offsetWidth : 1e3;
5461
+ const maxTableWidth = Math.max(containerWidth - 100, taskListWidth);
5462
+ return Math.min(
5463
+ Math.max(newTableWidth, 50),
5464
+ // Minimum width
5465
+ maxTableWidth
5466
+ // Allow expansion beyond column width
5467
+ );
5468
+ });
5449
5469
  }
5450
5470
  };
5451
5471
  const handleMouseMove = (event) => {
@@ -10637,14 +10657,14 @@ const TaskListTableDefaultInner = ({
10637
10657
  );
10638
10658
  };
10639
10659
  const TaskListTable = memo(TaskListTableDefaultInner);
10640
- const taskListRoot = "_taskListRoot_yoz76_1";
10641
- const taskListHorizontalScroll = "_taskListHorizontalScroll_yoz76_19";
10642
- const taskListResizer = "_taskListResizer_yoz76_81";
10643
- const horizontalContainer$1 = "_horizontalContainer_yoz76_145";
10644
- const tableWrapper = "_tableWrapper_yoz76_159";
10645
- const scrollToTop = "_scrollToTop_yoz76_173";
10646
- const scrollToBottom = "_scrollToBottom_yoz76_189";
10647
- const hidden = "_hidden_yoz76_205";
10660
+ const taskListRoot = "_taskListRoot_13wkq_1";
10661
+ const taskListHorizontalScroll = "_taskListHorizontalScroll_13wkq_23";
10662
+ const taskListResizer = "_taskListResizer_13wkq_87";
10663
+ const horizontalContainer$1 = "_horizontalContainer_13wkq_151";
10664
+ const tableWrapper = "_tableWrapper_13wkq_165";
10665
+ const scrollToTop = "_scrollToTop_13wkq_179";
10666
+ const scrollToBottom = "_scrollToBottom_13wkq_195";
10667
+ const hidden = "_hidden_13wkq_211";
10648
10668
  const styles$d = {
10649
10669
  taskListRoot,
10650
10670
  taskListHorizontalScroll,
@@ -13135,10 +13155,10 @@ const TaskGanttContentInner = (props) => {
13135
13155
  ] });
13136
13156
  };
13137
13157
  const TaskGanttContent = memo(TaskGanttContentInner);
13138
- const ganttVerticalContainer = "_ganttVerticalContainer_1wr55_1";
13139
- const horizontalContainer = "_horizontalContainer_1wr55_73";
13140
- const wrapper = "_wrapper_1wr55_85";
13141
- const calendarDragging = "_calendarDragging_1wr55_109";
13158
+ const ganttVerticalContainer = "_ganttVerticalContainer_5z1c2_1";
13159
+ const horizontalContainer = "_horizontalContainer_5z1c2_75";
13160
+ const wrapper = "_wrapper_5z1c2_87";
13161
+ const calendarDragging = "_calendarDragging_5z1c2_117";
13142
13162
  const styles$2 = {
13143
13163
  ganttVerticalContainer,
13144
13164
  horizontalContainer,
@@ -13208,7 +13228,7 @@ const TaskGanttInner = (props) => {
13208
13228
  clientX: event.clientX,
13209
13229
  clientY: event.clientY,
13210
13230
  scrollLeft: verticalGanttContainerRef.current.scrollLeft,
13211
- scrollTop: verticalGanttContainerRef.current.scrollTop
13231
+ scrollTop: horizontalContainerRef.current.scrollTop
13212
13232
  };
13213
13233
  moveStateHorRef.current = {
13214
13234
  clientX: event.clientX,
@@ -13229,10 +13249,9 @@ const TaskGanttInner = (props) => {
13229
13249
  return;
13230
13250
  }
13231
13251
  event.preventDefault();
13232
- const { clientX, scrollLeft, scrollTop, clientY } = moveStateVertRef.current;
13252
+ const { clientX, scrollLeft } = moveStateVertRef.current;
13233
13253
  const scrollVertContainer = verticalGanttContainerRef.current;
13234
13254
  scrollVertContainer.scrollLeft = scrollLeft + clientX - event.clientX;
13235
- scrollVertContainer.scrollTop = scrollTop + clientY - event.clientY;
13236
13255
  const {
13237
13256
  clientX: clientXH,
13238
13257
  scrollLeft: scrollLeftH,
@@ -13256,6 +13275,7 @@ const TaskGanttInner = (props) => {
13256
13275
  event.preventDefault();
13257
13276
  moveStateVertRef.current = null;
13258
13277
  moveStateHorRef.current = null;
13278
+ moveStateScrollRef.current = null;
13259
13279
  contentContainer.classList.remove(styles$2.calendarDragging);
13260
13280
  };
13261
13281
  contentContainer.addEventListener("mousemove", onScrollMove);
@@ -13303,7 +13323,15 @@ const TaskGanttInner = (props) => {
13303
13323
  ref: ganttSVGRef,
13304
13324
  children: [
13305
13325
  /* @__PURE__ */ jsx(GanttToday, { ...ganttTodayProps }),
13306
- /* @__PURE__ */ jsx("rect", { ref: contentRef, width: "100%", height: "100%", fill: "transparent" }),
13326
+ /* @__PURE__ */ jsx(
13327
+ "rect",
13328
+ {
13329
+ ref: contentRef,
13330
+ width: "100%",
13331
+ height: "100%",
13332
+ fill: "transparent"
13333
+ }
13334
+ ),
13307
13335
  /* @__PURE__ */ jsx(TaskGanttContent, { ...barProps })
13308
13336
  ]
13309
13337
  }
@@ -5313,7 +5313,8 @@
5313
5313
  titleCellWidth,
5314
5314
  dateCellWidth,
5315
5315
  dependenciesCellWidth,
5316
- actionColumnWidth
5316
+ actionColumnWidth,
5317
+ tableWidth: defaultTableWidth = 400
5317
5318
  } = theme.distances;
5318
5319
  const defaultColumns = React.useMemo(() => {
5319
5320
  return [
@@ -5349,6 +5350,10 @@
5349
5350
  const [columnsState, setColumns] = React.useState(
5350
5351
  clientColumns || defaultColumns
5351
5352
  );
5353
+ const taskListWidth = React.useMemo(
5354
+ () => columnsState.reduce((res, { width }) => res + width, 0) + extraWidth,
5355
+ [columnsState, extraWidth]
5356
+ );
5352
5357
  React.useEffect(() => {
5353
5358
  if (clientColumns) {
5354
5359
  setColumns([...clientColumns]);
@@ -5356,19 +5361,23 @@
5356
5361
  const newColumnIds = clientColumns.map((col) => col.id);
5357
5362
  const widthOfAddedColumns = clientColumns.filter((col) => !currentColumnIds.includes(col.id)).reduce((res, { width }) => res + width, 0);
5358
5363
  const widthOfRemovedColumns = clientColumns.filter((col) => !newColumnIds.includes(col.id)).reduce((res, { width }) => res + width, 0);
5359
- setTableWidth(
5360
- (prev) => Math.min(
5361
- prev + widthOfAddedColumns - widthOfRemovedColumns,
5362
- clientColumns.reduce((res, { width }) => res + width, 0) + extraWidth
5363
- )
5364
- );
5364
+ setTableWidth((prev) => {
5365
+ const newWidth = prev + widthOfAddedColumns - widthOfRemovedColumns;
5366
+ return Math.max(newWidth, 100);
5367
+ });
5365
5368
  }
5366
- }, [clientColumns, extraWidth]);
5369
+ }, [clientColumns, extraWidth, taskListWidth]);
5367
5370
  const [tableResizeEvent, setTableResizeEvent] = React.useState(null);
5368
5371
  const [columnResizeEvent, setColumnResizeEvent] = React.useState(null);
5369
- const [tableWidthState, setTableWidth] = React.useState(
5370
- () => columnsState.reduce((res, { width }) => res + width, 0) + extraWidth
5371
- );
5372
+ const [tableWidthState, setTableWidth] = React.useState(() => {
5373
+ const calculatedWidth = columnsState.reduce((res, { width }) => res + width, 0) + extraWidth;
5374
+ const MAX_INITIAL_WIDTH = 600;
5375
+ if (calculatedWidth <= MAX_INITIAL_WIDTH) {
5376
+ return calculatedWidth;
5377
+ } else {
5378
+ return defaultTableWidth;
5379
+ }
5380
+ });
5372
5381
  const onTableResizeStart = (clientX) => {
5373
5382
  const newTableResizeEvent = {
5374
5383
  initialClientX: clientX,
@@ -5387,7 +5396,6 @@
5387
5396
  };
5388
5397
  const isResizeTableInProgress = Boolean(tableResizeEvent);
5389
5398
  const isResizeColumnInProgress = Boolean(columnResizeEvent);
5390
- const taskListWidth = columnsState.reduce((res, { width }) => res + width, 0) + extraWidth;
5391
5399
  React.useEffect(() => {
5392
5400
  if (!isResizeTableInProgress) {
5393
5401
  return void 0;
@@ -5395,9 +5403,15 @@
5395
5403
  const handleMove = (clientX) => {
5396
5404
  const moveDelta = clientX - tableResizeEvent.initialClientX;
5397
5405
  setTableWidth(() => {
5406
+ const newWidth = tableResizeEvent.initialTableWidth + moveDelta;
5407
+ const ganttContainer = ganttRef.current;
5408
+ const containerWidth = ganttContainer ? ganttContainer.offsetWidth : 1e3;
5409
+ const maxTableWidth = Math.max(containerWidth - 100, taskListWidth);
5398
5410
  return Math.min(
5399
- Math.max(tableResizeEvent.initialTableWidth + moveDelta, 50),
5400
- taskListWidth
5411
+ Math.max(newWidth, 50),
5412
+ // Minimum width of 50px
5413
+ maxTableWidth
5414
+ // Allow table to expand much more
5401
5415
  );
5402
5416
  });
5403
5417
  };
@@ -5457,12 +5471,18 @@
5457
5471
  return newColumns;
5458
5472
  });
5459
5473
  if (previousColumnWidth !== newColumnWidth) {
5460
- setTableWidth(
5461
- () => Math.min(
5462
- Math.max(columnResizeEvent.initialTableWidth + moveDelta, 50),
5463
- taskListWidth
5464
- )
5465
- );
5474
+ setTableWidth(() => {
5475
+ const newTableWidth = columnResizeEvent.initialTableWidth + moveDelta;
5476
+ const ganttContainer = ganttRef.current;
5477
+ const containerWidth = ganttContainer ? ganttContainer.offsetWidth : 1e3;
5478
+ const maxTableWidth = Math.max(containerWidth - 100, taskListWidth);
5479
+ return Math.min(
5480
+ Math.max(newTableWidth, 50),
5481
+ // Minimum width
5482
+ maxTableWidth
5483
+ // Allow expansion beyond column width
5484
+ );
5485
+ });
5466
5486
  }
5467
5487
  };
5468
5488
  const handleMouseMove = (event) => {
@@ -10654,14 +10674,14 @@
10654
10674
  );
10655
10675
  };
10656
10676
  const TaskListTable = React.memo(TaskListTableDefaultInner);
10657
- const taskListRoot = "_taskListRoot_yoz76_1";
10658
- const taskListHorizontalScroll = "_taskListHorizontalScroll_yoz76_19";
10659
- const taskListResizer = "_taskListResizer_yoz76_81";
10660
- const horizontalContainer$1 = "_horizontalContainer_yoz76_145";
10661
- const tableWrapper = "_tableWrapper_yoz76_159";
10662
- const scrollToTop = "_scrollToTop_yoz76_173";
10663
- const scrollToBottom = "_scrollToBottom_yoz76_189";
10664
- const hidden = "_hidden_yoz76_205";
10677
+ const taskListRoot = "_taskListRoot_13wkq_1";
10678
+ const taskListHorizontalScroll = "_taskListHorizontalScroll_13wkq_23";
10679
+ const taskListResizer = "_taskListResizer_13wkq_87";
10680
+ const horizontalContainer$1 = "_horizontalContainer_13wkq_151";
10681
+ const tableWrapper = "_tableWrapper_13wkq_165";
10682
+ const scrollToTop = "_scrollToTop_13wkq_179";
10683
+ const scrollToBottom = "_scrollToBottom_13wkq_195";
10684
+ const hidden = "_hidden_13wkq_211";
10665
10685
  const styles$d = {
10666
10686
  taskListRoot,
10667
10687
  taskListHorizontalScroll,
@@ -13152,10 +13172,10 @@
13152
13172
  ] });
13153
13173
  };
13154
13174
  const TaskGanttContent = React.memo(TaskGanttContentInner);
13155
- const ganttVerticalContainer = "_ganttVerticalContainer_1wr55_1";
13156
- const horizontalContainer = "_horizontalContainer_1wr55_73";
13157
- const wrapper = "_wrapper_1wr55_85";
13158
- const calendarDragging = "_calendarDragging_1wr55_109";
13175
+ const ganttVerticalContainer = "_ganttVerticalContainer_5z1c2_1";
13176
+ const horizontalContainer = "_horizontalContainer_5z1c2_75";
13177
+ const wrapper = "_wrapper_5z1c2_87";
13178
+ const calendarDragging = "_calendarDragging_5z1c2_117";
13159
13179
  const styles$2 = {
13160
13180
  ganttVerticalContainer,
13161
13181
  horizontalContainer,
@@ -13225,7 +13245,7 @@
13225
13245
  clientX: event.clientX,
13226
13246
  clientY: event.clientY,
13227
13247
  scrollLeft: verticalGanttContainerRef.current.scrollLeft,
13228
- scrollTop: verticalGanttContainerRef.current.scrollTop
13248
+ scrollTop: horizontalContainerRef.current.scrollTop
13229
13249
  };
13230
13250
  moveStateHorRef.current = {
13231
13251
  clientX: event.clientX,
@@ -13246,10 +13266,9 @@
13246
13266
  return;
13247
13267
  }
13248
13268
  event.preventDefault();
13249
- const { clientX, scrollLeft, scrollTop, clientY } = moveStateVertRef.current;
13269
+ const { clientX, scrollLeft } = moveStateVertRef.current;
13250
13270
  const scrollVertContainer = verticalGanttContainerRef.current;
13251
13271
  scrollVertContainer.scrollLeft = scrollLeft + clientX - event.clientX;
13252
- scrollVertContainer.scrollTop = scrollTop + clientY - event.clientY;
13253
13272
  const {
13254
13273
  clientX: clientXH,
13255
13274
  scrollLeft: scrollLeftH,
@@ -13273,6 +13292,7 @@
13273
13292
  event.preventDefault();
13274
13293
  moveStateVertRef.current = null;
13275
13294
  moveStateHorRef.current = null;
13295
+ moveStateScrollRef.current = null;
13276
13296
  contentContainer.classList.remove(styles$2.calendarDragging);
13277
13297
  };
13278
13298
  contentContainer.addEventListener("mousemove", onScrollMove);
@@ -13320,7 +13340,15 @@
13320
13340
  ref: ganttSVGRef,
13321
13341
  children: [
13322
13342
  /* @__PURE__ */ jsxRuntime.jsx(GanttToday, { ...ganttTodayProps }),
13323
- /* @__PURE__ */ jsxRuntime.jsx("rect", { ref: contentRef, width: "100%", height: "100%", fill: "transparent" }),
13343
+ /* @__PURE__ */ jsxRuntime.jsx(
13344
+ "rect",
13345
+ {
13346
+ ref: contentRef,
13347
+ width: "100%",
13348
+ height: "100%",
13349
+ fill: "transparent"
13350
+ }
13351
+ ),
13324
13352
  /* @__PURE__ */ jsxRuntime.jsx(TaskGanttContent, { ...barProps })
13325
13353
  ]
13326
13354
  }
package/dist/style.css CHANGED
@@ -282,32 +282,35 @@
282
282
  border-bottom: 1px solid var(--gantt-divider-color);
283
283
  table-layout: fixed;
284
284
  }
285
- ._taskListRoot_yoz76_1 {
285
+ ._taskListRoot_13wkq_1 {
286
286
  position: relative;
287
287
  height: 100%;
288
288
  display: flex;
289
289
  flex-direction: column;
290
+ min-width: 0;
291
+ flex-shrink: 0;
290
292
  /*noinspection CssUnresolvedCustomProperty*/
291
293
  border-left: 1px solid var(--gantt-table-divider-color, var(--gantt-divider-color));
292
294
  }
293
295
 
294
- ._taskListHorizontalScroll_yoz76_19 {
296
+ ._taskListHorizontalScroll_13wkq_23 {
295
297
  overflow-x: scroll;
296
298
  height: 100%;
297
299
  display: flex;
298
300
  flex-direction: column;
301
+ min-width: 0;
299
302
  }
300
303
 
301
- ._taskListHorizontalScroll_yoz76_19::-webkit-scrollbar {
304
+ ._taskListHorizontalScroll_13wkq_23::-webkit-scrollbar {
302
305
  width: 1rem;
303
306
  height: 1rem;
304
307
  }
305
308
 
306
- ._taskListHorizontalScroll_yoz76_19::-webkit-scrollbar-corner {
309
+ ._taskListHorizontalScroll_13wkq_23::-webkit-scrollbar-corner {
307
310
  background: transparent;
308
311
  }
309
312
 
310
- ._taskListHorizontalScroll_yoz76_19::-webkit-scrollbar-thumb {
313
+ ._taskListHorizontalScroll_13wkq_23::-webkit-scrollbar-thumb {
311
314
  border: 4px solid transparent;
312
315
  /*noinspection CssUnresolvedCustomProperty*/
313
316
  background: var(--gantt-scrollbar-thumb-color);
@@ -315,14 +318,14 @@
315
318
  background-clip: padding-box;
316
319
  }
317
320
 
318
- ._taskListHorizontalScroll_yoz76_19::-webkit-scrollbar-thumb:hover {
321
+ ._taskListHorizontalScroll_13wkq_23::-webkit-scrollbar-thumb:hover {
319
322
  border: 2px solid transparent;
320
323
  /*noinspection CssUnresolvedCustomProperty*/
321
324
  background: var(--gantt-scrollbar-thumb-color);
322
325
  background-clip: padding-box;
323
326
  }
324
327
 
325
- ._taskListResizer_yoz76_81 {
328
+ ._taskListResizer_13wkq_87 {
326
329
  position: absolute;
327
330
  top: 0;
328
331
  right: -3px;
@@ -334,16 +337,16 @@
334
337
  }
335
338
 
336
339
  /*noinspection CssUnresolvedCustomProperty*/
337
- ._taskListResizer_yoz76_81:hover {
340
+ ._taskListResizer_13wkq_87:hover {
338
341
  background-color: var(--gantt-table-hover-action-color);
339
342
  filter: var(--gantt-hover-filter);
340
343
  }
341
344
 
342
- ._taskListResizer_yoz76_81:hover::before {
345
+ ._taskListResizer_13wkq_87:hover::before {
343
346
  display: none;
344
347
  }
345
348
 
346
- ._taskListResizer_yoz76_81::before {
349
+ ._taskListResizer_13wkq_87::before {
347
350
  content: "";
348
351
  position: absolute;
349
352
  top: 0;
@@ -354,21 +357,21 @@
354
357
  background-color: var(--gantt-table-resize-color, var(--gantt-divider-color));
355
358
  }
356
359
 
357
- ._horizontalContainer_yoz76_145 {
360
+ ._horizontalContainer_13wkq_151 {
358
361
  margin: 0;
359
362
  padding: 0;
360
363
  overflow: hidden;
361
364
  flex-grow: 1;
362
365
  }
363
366
 
364
- ._tableWrapper_yoz76_159 {
367
+ ._tableWrapper_13wkq_165 {
365
368
  position: relative;
366
369
  flex-grow: 1;
367
370
  display: flex;
368
371
  flex-direction: column;
369
372
  }
370
373
 
371
- ._scrollToTop_yoz76_173 {
374
+ ._scrollToTop_13wkq_179 {
372
375
  position: absolute;
373
376
  top: 0;
374
377
  left: 0;
@@ -376,7 +379,7 @@
376
379
  height: 20px;
377
380
  }
378
381
 
379
- ._scrollToBottom_yoz76_189 {
382
+ ._scrollToBottom_13wkq_195 {
380
383
  position: absolute;
381
384
  bottom: 0;
382
385
  left: 0;
@@ -384,7 +387,7 @@
384
387
  height: 20px;
385
388
  }
386
389
 
387
- ._hidden_yoz76_205 {
390
+ ._hidden_13wkq_211 {
388
391
  display: none;
389
392
  }
390
393
  ._ganttToday_1oyhk_1 {
@@ -578,7 +581,7 @@
578
581
  user-select: none;
579
582
  stroke-width: 0;
580
583
  }
581
- ._ganttVerticalContainer_1wr55_1 {
584
+ ._ganttVerticalContainer_5z1c2_1 {
582
585
  overflow-x: scroll;
583
586
  overflow-y: hidden;
584
587
  font-size: 0;
@@ -588,18 +591,19 @@
588
591
  border-right: 1px solid var(--gantt-calendar-divider-color, var(--gantt-divider-color));
589
592
  flex-grow: 1;
590
593
  height: 100%;
594
+ min-width: 0;
591
595
  }
592
596
 
593
- ._ganttVerticalContainer_1wr55_1::-webkit-scrollbar {
597
+ ._ganttVerticalContainer_5z1c2_1::-webkit-scrollbar {
594
598
  width: 1rem;
595
599
  height: 1rem;
596
600
  }
597
601
 
598
- ._ganttVerticalContainer_1wr55_1::-webkit-scrollbar-corner {
602
+ ._ganttVerticalContainer_5z1c2_1::-webkit-scrollbar-corner {
599
603
  background: transparent;
600
604
  }
601
605
 
602
- ._ganttVerticalContainer_1wr55_1::-webkit-scrollbar-thumb {
606
+ ._ganttVerticalContainer_5z1c2_1::-webkit-scrollbar-thumb {
603
607
  border: 4px solid transparent;
604
608
  /*noinspection CssUnresolvedCustomProperty*/
605
609
  background: var(--gantt-scrollbar-thumb-color);
@@ -607,20 +611,20 @@
607
611
  background-clip: padding-box;
608
612
  }
609
613
 
610
- ._ganttVerticalContainer_1wr55_1::-webkit-scrollbar-thumb:hover {
614
+ ._ganttVerticalContainer_5z1c2_1::-webkit-scrollbar-thumb:hover {
611
615
  border: 2px solid transparent;
612
616
  /*noinspection CssUnresolvedCustomProperty*/
613
617
  background: var(--gantt-scrollbar-thumb-color);
614
618
  background-clip: padding-box;
615
619
  }
616
620
 
617
- ._horizontalContainer_1wr55_73 {
621
+ ._horizontalContainer_5z1c2_75 {
618
622
  margin: 0;
619
623
  padding: 0;
620
624
  overflow: hidden;
621
625
  }
622
626
 
623
- ._wrapper_1wr55_85 {
627
+ ._wrapper_5z1c2_87 {
624
628
  display: flex;
625
629
  padding: 0;
626
630
  margin: 0;
@@ -628,11 +632,14 @@
628
632
  outline: none;
629
633
  position: relative;
630
634
  height: 100%;
635
+ width: 100%;
636
+ max-width: 100%;
637
+ overflow: hidden;
631
638
  /*noinspection CssUnresolvedCustomProperty*/
632
639
  border-bottom: 1px solid var(--gantt-divider-color);
633
640
  }
634
641
 
635
- ._calendarDragging_1wr55_109 {
642
+ ._calendarDragging_5z1c2_117 {
636
643
  cursor: grabbing;
637
644
  }
638
645
  /*noinspection CssUnresolvedCustomProperty*/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantt-task-react-v",
3
- "version": "1.0.38",
3
+ "version": "1.0.39",
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",