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. |
| 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. |

View File

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

View File

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

View File

@ -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;
}

View File

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

View File

@ -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}