diff --git a/source/content.css b/source/content.css index 2f786a9..28ea468 100644 --- a/source/content.css +++ b/source/content.css @@ -389,7 +389,7 @@ body { --vandal-modal-background-color: #f3f0ea; /* Input Calendar */ - --vandal-input-months-background-color: #4d4c4c; + --vandal-input-months-background-color: #444; } .vandal, diff --git a/source/libs/components/common/icon/index.js b/source/libs/components/common/icon/index.js index abc6bda..29899d1 100644 --- a/source/libs/components/common/icon/index.js +++ b/source/libs/components/common/icon/index.js @@ -155,7 +155,7 @@ const icons = { ), leftNav: ({ ...props }) => ( - + {props.title} diff --git a/source/libs/components/filter/graph/graph.module.css b/source/libs/components/filter/graph/graph.module.css index ae39408..58816b4 100644 --- a/source/libs/components/filter/graph/graph.module.css +++ b/source/libs/components/filter/graph/graph.module.css @@ -5,11 +5,23 @@ } .year__container { + position: relative; display: flex; justify-content: flex-end; max-height: 75px; } +.scroll__wrapper { + display: flex; + width: 97%; + overflow-x: auto; + scroll-behavior: smooth; +} + +.scroll__wrapper::-webkit-scrollbar { + display: none; +} + .year { display: flex; flex: 0 0 48px; @@ -204,3 +216,17 @@ margin-top: 30px; background: none; } + +.left__scroll__button { + position: absolute; + left: 0; + width: 25px; + height: 100%; + background: #545454; + border: 0; + cursor: pointer; +} + +.left__nav__icon { + fill: #fff; +} diff --git a/source/libs/components/filter/graph/index.js b/source/libs/components/filter/graph/index.js index e31ad25..ed4efbd 100644 --- a/source/libs/components/filter/graph/index.js +++ b/source/libs/components/filter/graph/index.js @@ -1,4 +1,4 @@ -import React, { memo } from "react"; +import React, { memo, useRef } from "react"; import PropTypes from "prop-types"; import cx from "classnames"; import _ from "lodash"; @@ -90,6 +90,7 @@ const GraphFilter = memo((props) => { let { sparkline } = props; + const scrollRef = useRef(); const { theme } = useTheme(); if (showSparkError || showCalendarError) { @@ -150,32 +151,43 @@ const GraphFilter = memo((props) => { return (
- {_.map(years, (y) => ( -
- {y} - { + scrollRef.current.scrollLeft = 0; + }} + > + + +
+ {_.map(years, (y) => ( +
- - -
- ))} + {y} + + + +
+ ))} +
{showCalendarLoader && !isOverCapacity && (
diff --git a/source/libs/components/frame/frame.module.css b/source/libs/components/frame/frame.module.css index 7becf43..c5bf459 100644 --- a/source/libs/components/frame/frame.module.css +++ b/source/libs/components/frame/frame.module.css @@ -202,7 +202,6 @@ .backward__nav__icon { width: 24px; height: 37px; - transform: rotate(180deg); fill: var(--vandal-primary-icon-color); stroke: var(--vandal-primary-icon-color); stroke-width: 3px;