fix: Retain space for hidden TOC to prevent horizontal movement
This commit is contained in:
@@ -54,7 +54,7 @@ export default function Contents({ headings }: Props) {
|
|||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
if (headings.length === 0) {
|
if (headings.length === 0) {
|
||||||
return null;
|
return <StickyWrapper />;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user