Added max-width to allow overfow scroll on JSONEditor

This commit is contained in:
orangemug 2019-10-16 06:46:30 +01:00
parent 563a78ed42
commit 22b6a4a2bf
4 changed files with 8 additions and 5 deletions

View file

@ -115,7 +115,10 @@ class JSONEditor extends React.Component {
scrollbarStyle: "null",
}
return <div ref={(el) => this._el = el} />
return <div
className="codemirror-container"
ref={(el) => this._el = el}
/>
}
}

View file

@ -0,0 +1,3 @@
.codemirror-container {
max-width: 100%;
}

View file

@ -1,3 +0,0 @@
.react-codemirror2 {
max-width: 100%;
}

View file

@ -38,7 +38,7 @@ $toolbar-offset: 0;
@import 'popup';
@import 'map';
@import 'react-collapse';
@import 'react-codemirror';
@import 'codemirror';
/**
* Hacks for webdriverio isVisibleWithinViewport