diff --git a/frontend/src/Live.tsx b/frontend/src/Live.tsx index abbc1da..88d7b67 100644 --- a/frontend/src/Live.tsx +++ b/frontend/src/Live.tsx @@ -47,11 +47,11 @@ export function Live({ page, story, title }: { page: string; story: string; titl useEffect(() => { if (!full) return; - document.body.style.overflow = "hidden"; + document.documentElement.style.overflow = "hidden"; const escape = (event: KeyboardEvent) => event.key === "Escape" && setFull(false); addEventListener("keydown", escape); return () => { - document.body.style.overflow = ""; + document.documentElement.style.overflow = ""; removeEventListener("keydown", escape); }; }, [full]); @@ -61,7 +61,7 @@ export function Live({ page, story, title }: { page: string; story: string; titl -
+