diff --git a/webapp/public/style_domjudge.css b/webapp/public/style_domjudge.css index 7d824d6a71..07d63eab6a 100644 --- a/webapp/public/style_domjudge.css +++ b/webapp/public/style_domjudge.css @@ -737,6 +737,6 @@ blockquote { .editor { width: 100%; - height: 400px; + height: 80vh; border: 1px solid grey; } diff --git a/webapp/src/Twig/TwigExtension.php b/webapp/src/Twig/TwigExtension.php index 2ea4b2388b..60f4621df5 100644 --- a/webapp/src/Twig/TwigExtension.php +++ b/webapp/src/Twig/TwigExtension.php @@ -849,9 +849,6 @@ public function codeEditor( const element = document.getElementById('__EDITOR__'); const content = element.textContent; element.textContent = ''; - // Adjust editor height to fit window. - const height = $(window).height() - 400; - element.style.height = height + 'px'; const editor = monaco.editor.create(element, { value: content,