mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-01 15:24:08 +03:00
improve website
This commit is contained in:
@@ -19,8 +19,3 @@
|
||||
font-style: normal;
|
||||
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 });
|
||||
|
||||
useEffect(() => {
|
||||
initialize(document.body);
|
||||
initialize({ target: document.body, cancel: { nativeScrollbarsOverlaid: true } });
|
||||
return () => instance()?.destroy();
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user