mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
feat(code-editor): adjust height calculation for code editor component
This commit is contained in:
parent
eacd415667
commit
9a04f90538
@ -83,7 +83,7 @@ export default function CodeEditor() {
|
|||||||
defaultValue={DEFAULT_VALUE[language]}
|
defaultValue={DEFAULT_VALUE[language]}
|
||||||
path="file:///main.c"
|
path="file:///main.c"
|
||||||
theme={resolvedTheme === "light" ? "github-light-default" : "github-dark-default"}
|
theme={resolvedTheme === "light" ? "github-light-default" : "github-dark-default"}
|
||||||
height="100%"
|
className="h-[calc(100vh-56px)]"
|
||||||
options={CODE_EDITOR_OPTIONS}
|
options={CODE_EDITOR_OPTIONS}
|
||||||
beforeMount={(monaco) => {
|
beforeMount={(monaco) => {
|
||||||
shikiToMonaco(highlighter, monaco);
|
shikiToMonaco(highlighter, monaco);
|
||||||
|
Loading…
Reference in New Issue
Block a user