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

This commit is contained in:
2025-02-26 15:58:40 +08:00
parent 3111d58b3c
commit 800c35cb01
2 changed files with 7 additions and 3 deletions
+6 -2
View File
@@ -28,7 +28,7 @@ const Editor = dynamic(
{
ssr: false,
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" />
</div>
),
@@ -210,7 +210,11 @@ export default function CodeEditor() {
// 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>
}
/>
);
}
+1 -1
View File
@@ -86,7 +86,7 @@ export default function MdxPreview({ source }: MdxPreviewProps) {
if (isLoading) {
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" />
</div>
);