From c2621d0adb4c83ec70d7bf21e5078c102e9afcab Mon Sep 17 00:00:00 2001 From: Kushagra Gour Date: Mon, 8 May 2017 02:53:53 +0530 Subject: [PATCH] fix console codemirror height --- src/index.html | 4 ++-- src/script.js | 2 +- src/style.css | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/index.html b/src/index.html index aa90b85..c192495 100644 --- a/src/index.html +++ b/src/index.html @@ -116,11 +116,11 @@ -
+
- +
diff --git a/src/script.js b/src/script.js index 0341b28..cbf55d6 100644 --- a/src/script.js +++ b/src/script.js @@ -980,7 +980,6 @@ runBtn, searchInput, consoleEl, consoleLogEl theme: 'monokai', foldGutter: true, readOnly: true, - viewportMargin: Infinity, gutters: [ 'CodeMirror-foldgutter' ] }); @@ -1247,6 +1246,7 @@ runBtn, searchInput, consoleEl, consoleLogEl htmlCode.querySelector('.CodeMirror').style.fontSize = prefs.fontSize; cssCode.querySelector('.CodeMirror').style.fontSize = prefs.fontSize; jsCode.querySelector('.CodeMirror').style.fontSize = prefs.fontSize; + consoleEl.querySelector('.CodeMirror').style.fontSize = prefs.fontSize; // Update indentation count when slider is updated indentationSizeValueEl.textContent = $('[data-setting=indentSize]').value; diff --git a/src/style.css b/src/style.css index 303d941..7143cca 100644 --- a/src/style.css +++ b/src/style.css @@ -204,6 +204,7 @@ select, input[type="text"], input[type="number"], textarea { .code-wrap__header-btn { display: inline-block; vertical-align: top; + margin-left: 8px; } .code-wrap__header-btn, .code-wrap__header-btn > svg { @@ -830,9 +831,8 @@ li.CodeMirror-hint-active { transition: transform 0.4s cubic-bezier(0.76, 0.01, 0.13, 0.9); } .console.is-minimized { - transform: translateY(calc(100% - 30px)); + transform: translateY(calc(100% - 29px)); } .console .Codemirror { - height: auto; - max-height: calc(100% - 70px); + height: calc(100% - 55px); } \ No newline at end of file