Skip to content

Commit b4ba44a

Browse files
committed
fix editor overflow
1 parent d96e713 commit b4ba44a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

client/modules/IDE/components/Editor.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ class Editor extends React.Component {
1111
value: this.props.file.content,
1212
lineNumbers: true,
1313
styleActiveLine: true,
14-
mode: 'javascript'
14+
mode: 'javascript',
15+
lineWrapping: true
1516
});
1617
this._cm.on('change', () => { // eslint-disable-line
1718
// this.props.updateFileContent('sketch.js', this._cm.getValue());

client/styles/layout/_ide.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
}
77

88
.editor-holder {
9-
flex-grow: 1;
9+
flex: 1 0 0;
10+
max-width: 45%;
1011
height: 100%;
1112
}
1213

1314
.preview-frame {
14-
flex-grow: 1;
15+
flex: 1 0 0;
1516
}
1617

1718
.toolbar {

0 commit comments

Comments
 (0)