Skip to content

Commit 388deec

Browse files
committed
add fix for anchor jumps
1 parent 0f59908 commit 388deec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/hooks/useAnchorFix.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ export function useAnchorFix() {
3030
window.removeEventListener('load', handleAnchorScroll);
3131
};
3232
}, []);
33-
}
33+
}

src/theme/DocRoot/Layout/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import BackToTopButton from '@theme/BackToTopButton';
55
import DocPageLayoutSidebar from '@theme/DocRoot/Layout/Sidebar';
66
import DocPageLayoutMain from '@theme/DocRoot/Layout/Main';
77
import styles from './styles.module.css';
8-
import { useAnchorFix } from '../../hooks/useAnchorFix';
8+
import { useAnchorFix } from '../../../hooks/useAnchorFix';
99
export default function DocPageLayout({children}) {
1010
useAnchorFix(); // fix for layout shifts which occur when navigating to an anchor
1111
const sidebar = useDocsSidebar();

0 commit comments

Comments
 (0)