Merge pull request #159 from status-im/improve_sidebars_width

improve sidebars width
This commit is contained in:
Iuri Matias 2018-10-24 17:21:09 -04:00 committed by GitHub
commit 3d5028e41b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ class EditorContainer extends React.Component {
}
textEditorMdSize() {
return this.state.currentAsideTab.length ? 5 : 10;
return this.state.currentAsideTab.length ? 7 : 10
}
textEditorXsSize() {
@ -64,13 +64,13 @@ class EditorContainer extends React.Component {
isContract={this.isContract()}
currentFile={this.props.currentFile} />
</Col>
<Col xs={4} md={2} className="border-right">
<Col xs={4} md={2} xl={2} lg={2} className="border-right">
<FileExplorerContainer showHiddenFiles={this.state.showHiddenFiles} toggleShowHiddenFiles={() => this.toggleShowHiddenFiles()} />
</Col>
<Col xs={this.textEditorXsSize()} md={this.textEditorMdSize()}>
<TextEditorContainer currentFile={this.props.currentFile} onFileContentChange={(newContent) => this.onFileContentChange(newContent)} />
</Col>
{this.state.currentAsideTab && <Col xs={6} md={5}>
{this.state.currentAsideTab && <Col xs={6} md={3}>
<TextEditorAsideContainer currentAsideTab={this.state.currentAsideTab} currentFile={this.props.currentFile} />
</Col>}
</Row>