feat(mdx-preview): enhance loading state with padding and rounded corners for better aesthetics

This commit is contained in:
cfngc4594 2025-02-26 15:08:27 +08:00
parent 2fc11f58b0
commit e108244121

View File

@ -85,7 +85,11 @@ export default function MdxPreview({ source }: MdxPreviewProps) {
}, [getMdxSource]); }, [getMdxSource]);
if (isLoading) { if (isLoading) {
return <Skeleton className="h-full w-full" />; return (
<div className="h-full w-full p-10">
<Skeleton className="h-full w-full rounded-3xl" />
</div>
);
} }
if (error) { if (error) {