From 9a04f90538ee534d235c32f3f4e503190feee92f Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Fri, 21 Feb 2025 19:49:50 +0800 Subject: [PATCH] feat(code-editor): adjust height calculation for code editor component --- src/components/code-editor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/code-editor.tsx b/src/components/code-editor.tsx index c7b0cbf..945c11a 100644 --- a/src/components/code-editor.tsx +++ b/src/components/code-editor.tsx @@ -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);