fix(mdx-preview): adjust max height calculation for ScrollArea component

This commit is contained in:
cfngc4594 2025-02-26 11:05:33 +08:00
parent 97a1cb584e
commit 844e9f0cca

View File

@ -113,7 +113,7 @@ export default function MdxPreview({ source }: MdxPreviewProps) {
}
return (
<ScrollArea className="[&>[data-radix-scroll-area-viewport]]:max-h-[calc(100vh-131px)]">
<ScrollArea className="[&>[data-radix-scroll-area-viewport]]:max-h-[calc(100vh-130px)]">
<div className="markdown-body">
<MDXRemote {...mdxSource!} components={components} />
</div>