mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
fix(mdx-preview): adjust max height calculation for ScrollArea component
This commit is contained in:
parent
97a1cb584e
commit
844e9f0cca
@ -113,7 +113,7 @@ export default function MdxPreview({ source }: MdxPreviewProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
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">
|
<div className="markdown-body">
|
||||||
<MDXRemote {...mdxSource!} components={components} />
|
<MDXRemote {...mdxSource!} components={components} />
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user