gantt-task-react-v 1.0.20 → 1.0.21

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.
@@ -13147,12 +13147,12 @@ const TaskGanttContentInner = (props) => {
13147
13147
  ] });
13148
13148
  };
13149
13149
  const TaskGanttContent = memo(TaskGanttContentInner);
13150
- const ganttVerticalContainer = "_ganttVerticalContainer_fjhll_1";
13151
- const horizontalContainer = "_horizontalContainer_fjhll_81";
13152
- const ganttHeader = "_ganttHeader_fjhll_99";
13153
- const ganttBodyScroll = "_ganttBodyScroll_fjhll_109";
13154
- const wrapper = "_wrapper_fjhll_127";
13155
- const calendarDragging = "_calendarDragging_fjhll_153";
13150
+ const ganttVerticalContainer = "_ganttVerticalContainer_1nwo1_1";
13151
+ const horizontalContainer = "_horizontalContainer_1nwo1_85";
13152
+ const ganttHeader = "_ganttHeader_1nwo1_107";
13153
+ const ganttBodyScroll = "_ganttBodyScroll_1nwo1_117";
13154
+ const wrapper = "_wrapper_1nwo1_139";
13155
+ const calendarDragging = "_calendarDragging_1nwo1_173";
13156
13156
  const styles$2 = {
13157
13157
  ganttVerticalContainer,
13158
13158
  horizontalContainer,
@@ -13164,12 +13164,12 @@
13164
13164
  ] });
13165
13165
  };
13166
13166
  const TaskGanttContent = React.memo(TaskGanttContentInner);
13167
- const ganttVerticalContainer = "_ganttVerticalContainer_fjhll_1";
13168
- const horizontalContainer = "_horizontalContainer_fjhll_81";
13169
- const ganttHeader = "_ganttHeader_fjhll_99";
13170
- const ganttBodyScroll = "_ganttBodyScroll_fjhll_109";
13171
- const wrapper = "_wrapper_fjhll_127";
13172
- const calendarDragging = "_calendarDragging_fjhll_153";
13167
+ const ganttVerticalContainer = "_ganttVerticalContainer_1nwo1_1";
13168
+ const horizontalContainer = "_horizontalContainer_1nwo1_85";
13169
+ const ganttHeader = "_ganttHeader_1nwo1_107";
13170
+ const ganttBodyScroll = "_ganttBodyScroll_1nwo1_117";
13171
+ const wrapper = "_wrapper_1nwo1_139";
13172
+ const calendarDragging = "_calendarDragging_1nwo1_173";
13173
13173
  const styles$2 = {
13174
13174
  ganttVerticalContainer,
13175
13175
  horizontalContainer,
package/dist/style.css CHANGED
@@ -581,12 +581,14 @@
581
581
  user-select: none;
582
582
  stroke-width: 0;
583
583
  }
584
- ._ganttVerticalContainer_fjhll_1 {
584
+ ._ganttVerticalContainer_1nwo1_1 {
585
585
  display: flex;
586
586
  flex-direction: column;
587
- /* allow horizontal scrolling so the gantt SVG can overflow and be scrolled */
588
- overflow-x: auto;
587
+ /* inner container should not create a page-wide scroll; let wrapper handle horizontal overflow */
588
+ overflow-x: visible;
589
589
  overflow-y: hidden;
590
+ /* allow this flex child to shrink when its child is wider than available space */
591
+ min-width: 0;
590
592
  font-size: 0;
591
593
  margin: 0;
592
594
  padding: 0;
@@ -597,16 +599,16 @@
597
599
  min-height: 0;
598
600
  }
599
601
 
600
- ._ganttVerticalContainer_fjhll_1::-webkit-scrollbar {
602
+ ._ganttVerticalContainer_1nwo1_1::-webkit-scrollbar {
601
603
  width: 1rem;
602
604
  height: 1rem;
603
605
  }
604
606
 
605
- ._ganttVerticalContainer_fjhll_1::-webkit-scrollbar-corner {
607
+ ._ganttVerticalContainer_1nwo1_1::-webkit-scrollbar-corner {
606
608
  background: transparent;
607
609
  }
608
610
 
609
- ._ganttVerticalContainer_fjhll_1::-webkit-scrollbar-thumb {
611
+ ._ganttVerticalContainer_1nwo1_1::-webkit-scrollbar-thumb {
610
612
  border: 4px solid transparent;
611
613
  /*noinspection CssUnresolvedCustomProperty*/
612
614
  background: var(--gantt-scrollbar-thumb-color);
@@ -614,50 +616,58 @@
614
616
  background-clip: padding-box;
615
617
  }
616
618
 
617
- ._ganttVerticalContainer_fjhll_1::-webkit-scrollbar-thumb:hover {
619
+ ._ganttVerticalContainer_1nwo1_1::-webkit-scrollbar-thumb:hover {
618
620
  border: 2px solid transparent;
619
621
  /*noinspection CssUnresolvedCustomProperty*/
620
622
  background: var(--gantt-scrollbar-thumb-color);
621
623
  background-clip: padding-box;
622
624
  }
623
625
 
624
- ._horizontalContainer_fjhll_81 {
626
+ ._horizontalContainer_1nwo1_85 {
625
627
  margin: 0;
626
628
  padding: 0;
627
629
  /* keep inner container hidden overflow so content width is controlled by outer container */
628
630
  overflow: hidden;
631
+ /* allow inner container to be clipped instead of forcing parent width */
632
+ min-width: 0;
629
633
  height: 100%;
630
634
  min-height: 0;
631
635
  }
632
636
 
633
- ._ganttHeader_fjhll_99 {
637
+ ._ganttHeader_1nwo1_107 {
634
638
  flex: 0 0 auto;
635
639
  z-index: 3;
636
640
  }
637
641
 
638
- ._ganttBodyScroll_fjhll_109 {
642
+ ._ganttBodyScroll_1nwo1_117 {
639
643
  flex: 1 1 auto;
640
644
  /* vertical scrolling only here; horizontal controlled by the parent container */
641
645
  overflow-y: auto;
642
- overflow-x: hidden;
646
+ /* allow horizontal overflow to be visible so the outer container's horizontal
647
+ scrollbar can control the full width of the gantt */
648
+ overflow-x: visible;
643
649
  min-height: 0;
644
650
  height: 100%;
645
651
  }
646
652
 
647
- ._wrapper_fjhll_127 {
653
+ ._wrapper_1nwo1_139 {
648
654
  display: flex;
649
655
  padding: 0;
650
656
  margin: 0;
651
657
  list-style: none;
652
658
  outline: none;
653
659
  position: relative;
660
+ /* allow children to shrink; prevents child content from expanding the wrapper width */
661
+ min-width: 0;
662
+ /* let wrapper provide horizontal scrolling when children are wider than the view */
663
+ overflow-x: auto;
654
664
  /*noinspection CssUnresolvedCustomProperty*/
655
665
  border-bottom: 1px solid var(--gantt-divider-color);
656
666
  height: 100%;
657
667
  min-height: 0;
658
668
  }
659
669
 
660
- ._calendarDragging_fjhll_153 {
670
+ ._calendarDragging_1nwo1_173 {
661
671
  cursor: grabbing;
662
672
  }
663
673
  /*noinspection CssUnresolvedCustomProperty*/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantt-task-react-v",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
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",