mirror of
https://github.com/hanzoai/code.git
synced 2026-09-30 20:53:35 +00:00
add editor maxheight back
This commit is contained in:
@@ -722,6 +722,7 @@ export const VoidCodeEditor = ({ initValue, language, maxHeight, showScrollbars
|
||||
if (parentNode) {
|
||||
// const height = Math.min(, MAX_HEIGHT);
|
||||
parentNode.style.height = `${height}px`;
|
||||
parentNode.style.maxHeight = `${MAX_HEIGHT}px`;
|
||||
editor.layout();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user