mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2026-05-31 10:18:52 +00:00
fix(code): keep editor footer visible during resize
This commit is contained in:
parent
6324cc9aa6
commit
ed547d4f97
@ -41,6 +41,7 @@ export const ProblemEditor = ({
|
||||
language={language}
|
||||
value={value}
|
||||
path={path}
|
||||
className="h-full"
|
||||
languageServerConfigs={languageServerConfigs}
|
||||
onEditorReady={setEditor}
|
||||
onLspWebSocketReady={setLspWebSocket}
|
||||
@ -55,6 +56,7 @@ export const ProblemEditor = ({
|
||||
language={language}
|
||||
original={value}
|
||||
modified={optimizedCode}
|
||||
className="h-full"
|
||||
onEditorReady={setDiffEditor}
|
||||
/>
|
||||
) : (
|
||||
@ -62,6 +64,7 @@ export const ProblemEditor = ({
|
||||
language={language}
|
||||
value={value}
|
||||
path={path}
|
||||
className="h-full"
|
||||
languageServerConfigs={languageServerConfigs}
|
||||
onEditorReady={setEditor}
|
||||
onLspWebSocketReady={setLspWebSocket}
|
||||
|
||||
@ -16,9 +16,11 @@ export const CodePanel = ({ problemId }: CodePanelProps) => {
|
||||
<PanelLayout isScroll={false}>
|
||||
<div className="h-full flex flex-col">
|
||||
<CodeToolbar className="border-b" />
|
||||
<div className="min-h-0 flex-1">
|
||||
<Suspense fallback={<CodeContentSkeleton />}>
|
||||
<CodeContent problemId={problemId} />
|
||||
</Suspense>
|
||||
</div>
|
||||
<CodeFooter />
|
||||
</div>
|
||||
</PanelLayout>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user