fix(www): overflow issue in documentation (#1055)

Co-authored-by: shadcn <m@shadcn.com>
This commit is contained in:
Deveesh Shetty
2023-07-28 17:33:43 +05:30
committed by GitHub
parent 6cf598d47f
commit c9fecd4cdf

View File

@@ -139,9 +139,11 @@ export default async function DocPage({ params }: DocPageProps) {
</div>
{doc.toc && (
<div className="hidden text-sm xl:block">
<div className="sticky top-16 -mt-10 h-[calc(100vh-3.5rem)] overflow-hidden pt-6">
<div className="sticky top-16 -mt-10 pt-4">
<ScrollArea className="pb-10">
<DashboardTableOfContents toc={toc} />
<div className="sticky top-16 -mt-10 h-[calc(100vh-3.5rem)] py-12">
<DashboardTableOfContents toc={toc} />
</div>
</ScrollArea>
</div>
</div>