From 28d363154686fe4f15bf0bfc6dcb7c6dead3680f Mon Sep 17 00:00:00 2001 From: szogun1987 Date: Tue, 14 May 2024 19:31:45 +0200 Subject: [PATCH] * Remove white-space on the right on large screens * Align year label properly for Quarters mode * Align year label in the middle of the partial year * Add roght-end horizontal line --- example/src/App.tsx | 3 ++- example/src/components/view-switcher.tsx | 2 +- example/src/helper.tsx | 2 +- src/components/calendar/calendar.tsx | 31 ++++++++++++++++++++---- src/components/gantt/gantt.tsx | 5 +++- src/components/grid/grid-body.tsx | 10 ++++++++ src/types/public-types.ts | 1 + 7 files changed, 45 insertions(+), 9 deletions(-) diff --git a/example/src/App.tsx b/example/src/App.tsx index c2ab602eb..f3cf87666 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { Task, ViewMode, Gantt } from "gantt-task-react"; +import {Task, ViewMode, Gantt} from "gantt-task-react"; import { ViewSwitcher } from "./components/view-switcher"; import { getStartEndDateForProject, initTasks } from "./helper"; import "gantt-task-react/dist/index.css"; @@ -101,6 +101,7 @@ const App = () => { onExpanderClick={handleExpanderClick} listCellWidth={isChecked ? "155px" : ""} ganttHeight={300} + ganttWidth={1000} columnWidth={columnWidth} /> diff --git a/example/src/components/view-switcher.tsx b/example/src/components/view-switcher.tsx index 42f736016..a7227c913 100644 --- a/example/src/components/view-switcher.tsx +++ b/example/src/components/view-switcher.tsx @@ -56,7 +56,7 @@ export const ViewSwitcher: React.FC = ({ className="Button" onClick={() => onViewModeChange(ViewMode.QuarterYear)} > - Year + Quarter of year