mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-05-18 23:42:24 +00:00
feat(code-editor, mdx-preview): update loading state padding for improved aesthetics
This commit is contained in:
parent
3111d58b3c
commit
800c35cb01
@ -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>
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -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>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user