mirror of
https://github.com/maputnik/editor.git
synced 2026-01-07 14:00:01 +00:00
Added max-width to allow overfow scroll on JSONEditor
This commit is contained in:
@@ -115,7 +115,10 @@ class JSONEditor extends React.Component {
|
|||||||
scrollbarStyle: "null",
|
scrollbarStyle: "null",
|
||||||
}
|
}
|
||||||
|
|
||||||
return <div ref={(el) => this._el = el} />
|
return <div
|
||||||
|
className="codemirror-container"
|
||||||
|
ref={(el) => this._el = el}
|
||||||
|
/>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
3
src/styles/_codemirror.scss
Normal file
3
src/styles/_codemirror.scss
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.codemirror-container {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
.react-codemirror2 {
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
@@ -38,7 +38,7 @@ $toolbar-offset: 0;
|
|||||||
@import 'popup';
|
@import 'popup';
|
||||||
@import 'map';
|
@import 'map';
|
||||||
@import 'react-collapse';
|
@import 'react-collapse';
|
||||||
@import 'react-codemirror';
|
@import 'codemirror';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hacks for webdriverio isVisibleWithinViewport
|
* Hacks for webdriverio isVisibleWithinViewport
|
||||||
|
|||||||
Reference in New Issue
Block a user