From 4f7942e57df4e17bcb45d602de84f8525dd9cf3d Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sun, 28 Jul 2019 17:24:27 +0200 Subject: [PATCH] Webbuild: set editor height to 500 and other css changes --- styles/webbuild.css | 5 +++++ webbuild.js.inc | 1 + 2 files changed, 6 insertions(+) diff --git a/styles/webbuild.css b/styles/webbuild.css index 29d4556..1c7c4ff 100644 --- a/styles/webbuild.css +++ b/styles/webbuild.css @@ -255,6 +255,11 @@ div#container { .processes { width:100%; } +.CodeMirror { + font-size:9pt; + font-family:monospace; + line-height:1em; +} .editor { float:left; width:100%; diff --git a/webbuild.js.inc b/webbuild.js.inc index 0cba599..1a4aeb0 100644 --- a/webbuild.js.inc +++ b/webbuild.js.inc @@ -103,6 +103,7 @@ function ajax_getvalues(request,confirm) { indentWithTabs: true, onChange: function() { editorChanged(); } }); + editor.setSize(null, 500); } else if ((nodes[i].nodeName == "output") && (document.getElementById("outputbottom") != undefined)) { document.getElementById("outputbottom").scrollTop = document.getElementById("outputbottom").scrollHeight; } else if ((nodes[i].nodeName == "processes")) {