mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-22 09:30:35 +03:00
improve website
This commit is contained in:
@@ -19,8 +19,3 @@
|
|||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* elements wont be suddenly cropped after initialization is done */
|
|
||||||
[data-overlayscrollbars-initialize]:not([data-overlayscrollbars]):not(html) {
|
|
||||||
overflow: auto;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ const OverlayScrollbarsDocs = ({ Component, pageProps }: AppProps) => {
|
|||||||
const [initialize, instance] = useOverlayScrollbars({ defer: true });
|
const [initialize, instance] = useOverlayScrollbars({ defer: true });
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
initialize(document.body);
|
initialize({ target: document.body, cancel: { nativeScrollbarsOverlaid: true } });
|
||||||
return () => instance()?.destroy();
|
return () => instance()?.destroy();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user