fix(playground): adjust layout of the editor component for improved responsiveness

This commit is contained in:
ngc2207 2025-01-05 09:15:15 +08:00
parent 5a9a20dee6
commit c629dc5612

View File

@ -172,6 +172,9 @@ export default function PlaygroundPage() {
</Button> </Button>
</div> </div>
</div> </div>
<div className="flex flex-1 mt-0 m-3 gap-x-1">
<div className="w-1/3"></div>
<div className="w-1/3">
<Editor <Editor
theme="vs-dark" theme="vs-dark"
path={file.name} path={file.name}
@ -195,12 +198,18 @@ export default function PlaygroundPage() {
languageClientRef.current = languageClient; languageClientRef.current = languageClient;
}) })
.catch((error) => { .catch((error) => {
console.error("Failed to connect to language server:", error); console.error(
"Failed to connect to language server:",
error
);
}); });
} }
} }
}} }}
/> />
</div> </div>
<div className="w-1/3"></div>
</div>
</div>
); );
} }