feat(code-editor, mdx-preview): update loading state padding for improved aesthetics

This commit is contained in:
cfngc4594 2025-02-26 15:58:40 +08:00
parent 3111d58b3c
commit 800c35cb01
2 changed files with 7 additions and 3 deletions

View File

@ -28,7 +28,7 @@ const Editor = dynamic(
{ {
ssr: false, ssr: false,
loading: () => ( loading: () => (
<div className="h-full w-full p-10 pt-2"> <div className="h-full w-full p-4">
<Skeleton className="h-full w-full rounded-3xl" /> <Skeleton className="h-full w-full rounded-3xl" />
</div> </div>
), ),
@ -210,7 +210,11 @@ export default function CodeEditor() {
// console.log(marker.message); // console.log(marker.message);
// }); // });
// }} // }}
loading={<Skeleton className="h-full w-full" />} loading={
<div className="h-full w-full p-4">
<Skeleton className="h-full w-full rounded-3xl" />
</div>
}
/> />
); );
} }

View File

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