diff --git a/src/components/layers/JSONEditor.jsx b/src/components/layers/JSONEditor.jsx
index 466c865..310ed13 100644
--- a/src/components/layers/JSONEditor.jsx
+++ b/src/components/layers/JSONEditor.jsx
@@ -115,7 +115,10 @@ class JSONEditor extends React.Component {
scrollbarStyle: "null",
}
- return
this._el = el} />
+ return
this._el = el}
+ />
}
}
diff --git a/src/styles/_codemirror.scss b/src/styles/_codemirror.scss
new file mode 100644
index 0000000..85d7aa8
--- /dev/null
+++ b/src/styles/_codemirror.scss
@@ -0,0 +1,3 @@
+.codemirror-container {
+ max-width: 100%;
+}
diff --git a/src/styles/_react-codemirror.scss b/src/styles/_react-codemirror.scss
deleted file mode 100644
index c054ca2..0000000
--- a/src/styles/_react-codemirror.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-.react-codemirror2 {
- max-width: 100%;
-}
diff --git a/src/styles/index.scss b/src/styles/index.scss
index b27341d..bfef57f 100644
--- a/src/styles/index.scss
+++ b/src/styles/index.scss
@@ -38,7 +38,7 @@ $toolbar-offset: 0;
@import 'popup';
@import 'map';
@import 'react-collapse';
-@import 'react-codemirror';
+@import 'codemirror';
/**
* Hacks for webdriverio isVisibleWithinViewport