From b1cc6ff6cd4eb4394b3fb6e5a1504508ae8022f5 Mon Sep 17 00:00:00 2001 From: Stuart Taylor Date: Sun, 8 Apr 2018 22:37:10 +0100 Subject: [PATCH] Merge pull request #3 from Bouncey/fix/editorLayout Remove minimap and wrap lines --- .../src/templates/Challenges/views/classic/Editor.js | 8 +++++++- .../src/templates/Challenges/views/components/Output.js | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/learn/src/templates/Challenges/views/classic/Editor.js b/packages/learn/src/templates/Challenges/views/classic/Editor.js index b33a841f04..4b34146da7 100644 --- a/packages/learn/src/templates/Challenges/views/classic/Editor.js +++ b/packages/learn/src/templates/Challenges/views/classic/Editor.js @@ -35,9 +35,15 @@ const modeMap = { class Editor extends PureComponent { constructor(...props) { super(...props); + this.options = { - selectOnLineNumbers: true + minimap: { + enabled: false + }, + selectOnLineNumbers: true, + wordWrap: 'on' }; + this._editor = null; this.focusEditor = this.focusEditor.bind(this); diff --git a/packages/learn/src/templates/Challenges/views/components/Output.js b/packages/learn/src/templates/Challenges/views/components/Output.js index 0ba33c3304..518fb0e3de 100644 --- a/packages/learn/src/templates/Challenges/views/components/Output.js +++ b/packages/learn/src/templates/Challenges/views/components/Output.js @@ -16,7 +16,8 @@ const options = { scrollbar: { vertical: 'hidden', horizontal: 'hidden' - } + }, + wordWrap: 'on' }; function Output({ output, defaultOutput }) {