From 0b24938dcebb3e62bcd69864ff100959bda1ba13 Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Wed, 12 Jun 2019 17:11:35 -0400 Subject: [PATCH] fixes #945 (#1102) --- client/modules/IDE/components/Editor.jsx | 11 +++++++++-- client/styles/components/_editor.scss | 3 +++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/client/modules/IDE/components/Editor.jsx b/client/modules/IDE/components/Editor.jsx index 2b970660..892028c4 100644 --- a/client/modules/IDE/components/Editor.jsx +++ b/client/modules/IDE/components/Editor.jsx @@ -290,6 +290,11 @@ class Editor extends React.Component { 'editor--options': this.props.editorOptionsVisible }); + const editorHolderClass = classNames({ + 'editor-holder': true, + 'editor-holder--hidden': this.props.file.fileType === 'folder' || this.props.file.url + }); + return (
-
{ this.codemirrorContainer = element; }} className="editor-holder" > +
{ this.codemirrorContainer = element; }} className={editorHolderClass} >