mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-31 00:20:32 +01:00
Added max-width to allow overfow scroll on JSONEditor
This commit is contained in:
parent
563a78ed42
commit
22b6a4a2bf
4 changed files with 8 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue