Skip to content

Commit 35dd08a

Browse files
committed
fix(docs): keep mobile docs menu in viewport
1 parent 11e6461 commit 35dd08a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/src/components/docs-sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export function MobileDocsMenu() {
5252
<span className="sr-only">Open documentation menu</span>
5353
</summary>
5454
<div
55-
className="absolute right-0 top-11 max-h-[calc(100vh-6rem)] w-72 overflow-y-auto rounded-xl border bg-background p-4 shadow-lg"
55+
className="fixed inset-x-4 top-24 max-h-[calc(100vh-7rem)] overflow-y-auto rounded-xl border bg-background p-4 shadow-lg"
5656
onClick={() => details.current?.removeAttribute("open")}
5757
>
5858
<DocsSidebar />

0 commit comments

Comments
 (0)