diff --git a/README.md b/README.md index 8732a55..82cea66 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,7 @@ npm start | :------------- | :------ | :---------------------------------------------------------------------------------------------------- | | viewMode | enum | Specifies the time scale. Hour, Quarter Day, Half Day, Day, Week(ISO-8601, 1st day is Monday), Month. | | viewDate | date | Specifies display date and time for display. | +| preStepsCount | number | Specifies empty space before the fist task | | locale | string | Specifies the month name language. Able formats: ISO 639-2, Java Locale. | | rtl | boolean | Sets rtl mode. | diff --git a/example/src/App.tsx b/example/src/App.tsx index 4faa22c..f9360ef 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -66,7 +66,7 @@ const App = () => { }; return ( -
+
setView(viewMode)} onViewListChange={setIsChecked} diff --git a/example/src/index.css b/example/src/index.css index 1e7e9de..9fd1ea0 100644 --- a/example/src/index.css +++ b/example/src/index.css @@ -1,3 +1,6 @@ +.Wrapper { + margin-bottom: 2rem; +} .ViewContainer { list-style: none; -ms-box-orient: horizontal; diff --git a/src/components/other/horizontal-scroll.module.css b/src/components/other/horizontal-scroll.module.css index fd848a7..dcf787e 100644 --- a/src/components/other/horizontal-scroll.module.css +++ b/src/components/other/horizontal-scroll.module.css @@ -4,9 +4,9 @@ /*firefox*/ scrollbar-width: thin; /*iPad*/ - height: 1.1rem; + height: 1.2rem; } -/*.scrollWrapper::-webkit-scrollbar { +.scrollWrapper::-webkit-scrollbar { width: 1.1rem; height: 1.1rem; } @@ -27,7 +27,7 @@ background-clip: padding-box; } @media only screen and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) { -}*/ +} .scroll { height: 1px; } diff --git a/src/components/other/vertical-scroll.module.css b/src/components/other/vertical-scroll.module.css index 7e9c654..da55a2e 100644 --- a/src/components/other/vertical-scroll.module.css +++ b/src/components/other/vertical-scroll.module.css @@ -1,6 +1,6 @@ .scroll { overflow: hidden auto; - width: 17px; + width: 1rem; flex-shrink: 0; /*firefox*/ scrollbar-width: thin; diff --git a/src/components/other/vertical-scroll.tsx b/src/components/other/vertical-scroll.tsx index 87b3f21..d01d46e 100644 --- a/src/components/other/vertical-scroll.tsx +++ b/src/components/other/vertical-scroll.tsx @@ -29,7 +29,7 @@ export const VerticalScroll: React.FC<{ style={{ height: ganttHeight, marginTop: headerHeight, - marginLeft: rtl ? "" : "-17px", + marginLeft: rtl ? "" : "-1rem", }} className={styles.scroll} onScroll={onScroll}