mirror of
https://litchi.icu/ngc2207/judge.git
synced 2025-05-18 16:26:44 +00:00
fix(playground): adjust layout of the editor component for improved responsiveness
This commit is contained in:
parent
5a9a20dee6
commit
c629dc5612
@ -172,6 +172,9 @@ export default function PlaygroundPage() {
|
||||
</Button>
|
||||
</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
|
||||
theme="vs-dark"
|
||||
path={file.name}
|
||||
@ -195,12 +198,18 @@ export default function PlaygroundPage() {
|
||||
languageClientRef.current = languageClient;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error("Failed to connect to language server:", error);
|
||||
console.error(
|
||||
"Failed to connect to language server:",
|
||||
error
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
<div className="w-1/3"></div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user