feat(code-editor): adjust height calculation for code editor component

This commit is contained in:
cfngc4594 2025-02-21 19:49:50 +08:00
parent eacd415667
commit 9a04f90538

View File

@ -83,7 +83,7 @@ export default function CodeEditor() {
defaultValue={DEFAULT_VALUE[language]}
path="file:///main.c"
theme={resolvedTheme === "light" ? "github-light-default" : "github-dark-default"}
height="100%"
className="h-[calc(100vh-56px)]"
options={CODE_EDITOR_OPTIONS}
beforeMount={(monaco) => {
shikiToMonaco(highlighter, monaco);