mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 06:07:17 +01:00
Use css variables.
This commit is contained in:
parent
5d4ff5cfa4
commit
a5930f1772
29 changed files with 131 additions and 85 deletions
|
|
@ -20,7 +20,6 @@ export default function WebsiteChart({
|
|||
const [data, setData] = useState();
|
||||
const [dateRange, setDateRange] = useState(getDateRange(defaultDateRange));
|
||||
const { startDate, endDate, unit, value } = dateRange;
|
||||
const container = useRef();
|
||||
|
||||
const [pageviews, uniques] = useMemo(() => {
|
||||
if (data) {
|
||||
|
|
@ -54,11 +53,10 @@ export default function WebsiteChart({
|
|||
}, [websiteId, startDate, endDate, unit]);
|
||||
|
||||
return (
|
||||
<div ref={container}>
|
||||
<>
|
||||
<StickyHeader
|
||||
className={classNames(styles.header, 'row')}
|
||||
stickyClassName={styles.sticky}
|
||||
stickyStyle={{ width: container?.current?.clientWidth }}
|
||||
enabled={stickyHeader}
|
||||
>
|
||||
<MetricsBar
|
||||
|
|
@ -87,6 +85,6 @@ export default function WebsiteChart({
|
|||
)}
|
||||
</CheckVisible>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue