add editor maxheight back

This commit is contained in:
Mathew Pareles 2025-01-15 02:45:27 -08:00
parent bd30f14980
commit f3270a2219

View file

@ -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();
}
}