gantt-task-react-powern 0.4.78 → 0.4.79

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.
@@ -1150,7 +1150,7 @@ var Calendar = function Calendar(_ref) {
1150
1150
 
1151
1151
  for (var i = 0; i < dates.length; i++) {
1152
1152
  var date = dates[i];
1153
- var bottomValue = columnWidth > 55 ? getLocalDayOfWeek(date, locale, "short") + ", " + date.getDate().toString() : getLocalDayOfWeek(date, locale, "narrow") + " " + date.getDate().toString() + " " + (i < dates.length - 1 ? "," : "");
1153
+ var bottomValue = columnWidth > 55 ? getLocalDayOfWeek(date, locale, "short") + ", " + date.getDate().toString() : getLocalDayOfWeek(date, locale, "narrow") + "," + date.getDate().toString();
1154
1154
  bottomValues.push(React.createElement("text", {
1155
1155
  key: date.getTime(),
1156
1156
  y: headerHeight * 0.8,
@@ -2815,7 +2815,7 @@ var Gantt = function Gantt(_ref) {
2815
2815
  failedTask = _useState9[0],
2816
2816
  setFailedTask = _useState9[1];
2817
2817
 
2818
- var svgWidth = dateSetup.dates.length * columnWidth;
2818
+ var svgWidth = columnWidth < 55 ? (dateSetup.dates.length + 0.5) * columnWidth : dateSetup.dates.length * columnWidth;
2819
2819
  var ganttFullHeight = barTasks.length * rowHeight;
2820
2820
 
2821
2821
  var _useState10 = useState(0),