fix editor overflow
This commit is contained in:
parent
d96e7132dc
commit
b4ba44a67e
2 changed files with 5 additions and 3 deletions
|
@ -11,7 +11,8 @@ class Editor extends React.Component {
|
|||
value: this.props.file.content,
|
||||
lineNumbers: true,
|
||||
styleActiveLine: true,
|
||||
mode: 'javascript'
|
||||
mode: 'javascript',
|
||||
lineWrapping: true
|
||||
});
|
||||
this._cm.on('change', () => { // eslint-disable-line
|
||||
// this.props.updateFileContent('sketch.js', this._cm.getValue());
|
||||
|
|
|
@ -6,12 +6,13 @@
|
|||
}
|
||||
|
||||
.editor-holder {
|
||||
flex-grow: 1;
|
||||
flex: 1 0 0;
|
||||
max-width: 45%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.preview-frame {
|
||||
flex-grow: 1;
|
||||
flex: 1 0 0;
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
|
|
Loading…
Reference in a new issue