diff --git a/embark-ui/src/containers/EditorContainer.css b/embark-ui/src/containers/EditorContainer.css index 4793f550..7ef31ba8 100644 --- a/embark-ui/src/containers/EditorContainer.css +++ b/embark-ui/src/containers/EditorContainer.css @@ -16,6 +16,10 @@ background-color: #20a8d8; } +.text-editor-container { + overflow: hidden; +} + .editor-aside { position: absolute; top: 0; @@ -25,3 +29,13 @@ overflow-x: hidden; overflow-y: auto; } + +@media (max-width: 768px) { + .editor-aside { + position: relative; + } + + .aside-opened .text-editor-container { + max-height: 500px; + } +} diff --git a/embark-ui/src/containers/EditorContainer.js b/embark-ui/src/containers/EditorContainer.js index 489271b6..284aba3b 100644 --- a/embark-ui/src/containers/EditorContainer.js +++ b/embark-ui/src/containers/EditorContainer.js @@ -8,6 +8,7 @@ import FileExplorerContainer from './FileExplorerContainer'; import TextEditorToolbarContainer from './TextEditorToolbarContainer'; import {fetchEditorTabs as fetchEditorTabsAction} from '../actions'; import {getCurrentFile} from '../reducers/selectors'; +import classnames from 'classnames'; import './EditorContainer.css'; @@ -52,27 +53,23 @@ class EditorContainer extends React.Component { return this.state.currentAsideTab.length ? 7 : 10; } - textEditorXsSize() { - return this.state.currentAsideTab.length ? 2 : 8; - } - render() { return ( - + this.openAsideTab(newTab)} isContract={this.isContract()} currentFile={this.props.currentFile} activeTab={this.state.currentAsideTab}/> - + this.toggleShowHiddenFiles()} /> - + this.onFileContentChange(newContent)} /> {this.state.currentAsideTab && - +