From 07b64416557b5e7ef4d0b6ca7aabfdc0b3dde1d6 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 7 Jul 2024 20:21:51 -0400 Subject: [PATCH] fix: Retain space for hidden TOC to prevent horizontal movement --- app/scenes/Document/components/Contents.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scenes/Document/components/Contents.tsx b/app/scenes/Document/components/Contents.tsx index b6cf6c4d2..f498f5b2a 100644 --- a/app/scenes/Document/components/Contents.tsx +++ b/app/scenes/Document/components/Contents.tsx @@ -54,7 +54,7 @@ export default function Contents({ headings }: Props) { const { t } = useTranslation(); if (headings.length === 0) { - return null; + return ; } return (