scroll fix

This commit is contained in:
lisaavikarii 2022-07-10 14:14:27 +02:00
parent 14fe4977db
commit 3d49d4d564
6 changed files with 10 additions and 6 deletions

View File

@ -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. | | 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. | | 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. | | locale | string | Specifies the month name language. Able formats: ISO 639-2, Java Locale. |
| rtl | boolean | Sets rtl mode. | | rtl | boolean | Sets rtl mode. |

View File

@ -66,7 +66,7 @@ const App = () => {
}; };
return ( return (
<div> <div className="Wrapper">
<ViewSwitcher <ViewSwitcher
onViewModeChange={viewMode => setView(viewMode)} onViewModeChange={viewMode => setView(viewMode)}
onViewListChange={setIsChecked} onViewListChange={setIsChecked}

View File

@ -1,3 +1,6 @@
.Wrapper {
margin-bottom: 2rem;
}
.ViewContainer { .ViewContainer {
list-style: none; list-style: none;
-ms-box-orient: horizontal; -ms-box-orient: horizontal;

View File

@ -4,9 +4,9 @@
/*firefox*/ /*firefox*/
scrollbar-width: thin; scrollbar-width: thin;
/*iPad*/ /*iPad*/
height: 1.1rem; height: 1.2rem;
} }
/*.scrollWrapper::-webkit-scrollbar { .scrollWrapper::-webkit-scrollbar {
width: 1.1rem; width: 1.1rem;
height: 1.1rem; height: 1.1rem;
} }
@ -27,7 +27,7 @@
background-clip: padding-box; background-clip: padding-box;
} }
@media only screen and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) { @media only screen and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) {
}*/ }
.scroll { .scroll {
height: 1px; height: 1px;
} }

View File

@ -1,6 +1,6 @@
.scroll { .scroll {
overflow: hidden auto; overflow: hidden auto;
width: 17px; width: 1rem;
flex-shrink: 0; flex-shrink: 0;
/*firefox*/ /*firefox*/
scrollbar-width: thin; scrollbar-width: thin;

View File

@ -29,7 +29,7 @@ export const VerticalScroll: React.FC<{
style={{ style={{
height: ganttHeight, height: ganttHeight,
marginTop: headerHeight, marginTop: headerHeight,
marginLeft: rtl ? "" : "-17px", marginLeft: rtl ? "" : "-1rem",
}} }}
className={styles.scroll} className={styles.scroll}
onScroll={onScroll} onScroll={onScroll}