fix: TOC auto-closes, closes #12140 (#12143)

This commit is contained in:
Tom Moor
2026-04-23 05:02:55 -04:00
committed by GitHub
parent eefa8d4222
commit 1b0a5fb067
+1 -1
View File
@@ -97,7 +97,7 @@ function DocumentHeader({
const sidebarContext = useLocationSidebarContext();
const [measureRef, size] = useMeasure();
const { isShare, shareId, sharedTree, allowSubscriptions } = useShare();
const isMobile = isMobileMedia || size.width < 700;
const isMobile = isMobileMedia || (size.width > 0 && size.width < 700);
// We cache this value for as long as the component is mounted so that if you
// apply a template there is still the option to replace it until the user