Skip to content

Commit 19e184f

Browse files
authored
Fix "On this page" section clipping outside viewport (#210)
Co-authored-by: rekhab <itsrekhab@gmail.com>
1 parent 77d089f commit 19e184f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/on-this-page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function LargeOnThisPage({
4949
}, [mdRef]);
5050

5151
return (
52-
<div className="max-h-[calc(100vh-9rem)] overflow-y-auto">
52+
<div className="max-h-[calc(100vh-10.625rem)] overflow-y-auto">
5353
<nav className="mb-3 flex items-center font-semibold">On this page</nav>
5454
<ul className="md-toc flex flex-col flex-wrap gap-3 leading-[1.125]">
5555
{doc.headings.map((heading, i) => (

0 commit comments

Comments
 (0)