mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
Editor padding and environment edit modal fix
This commit is contained in:
parent
bc3304bed5
commit
0fa41ba955
@ -1,7 +1,7 @@
|
||||
{
|
||||
"private": true,
|
||||
"name": "insomnia",
|
||||
"version": "3.0.13",
|
||||
"version": "3.0.14",
|
||||
"productName": "Insomnia",
|
||||
"longName": "Insomnia HTTP Client",
|
||||
"description": "The best REST API Client",
|
||||
|
@ -28,8 +28,6 @@ import 'codemirror/addon/display/autorefresh'
|
||||
import 'codemirror/addon/search/search'
|
||||
import 'codemirror/addon/search/searchcursor'
|
||||
|
||||
import 'codemirror/addon/selection/active-line'
|
||||
|
||||
import 'codemirror/addon/search/matchesonscrollbar'
|
||||
import 'codemirror/addon/search/matchesonscrollbar.css'
|
||||
|
||||
@ -56,13 +54,12 @@ const BASE_CODEMIRROR_OPTIONS = {
|
||||
tabSize: 4,
|
||||
indentUnit: 4,
|
||||
indentWithTabs: true,
|
||||
// styleActiveLine: true,
|
||||
gutters: [
|
||||
'CodeMirror-linenumbers',
|
||||
'CodeMirror-foldgutter',
|
||||
'CodeMirror-lint-markers'
|
||||
],
|
||||
cursorScrollMargin: 80,
|
||||
cursorScrollMargin: 12, // NOTE: This is px
|
||||
extraKeys: {
|
||||
"Ctrl-Q": function (cm) {
|
||||
cm.foldCode(cm.getCursor());
|
||||
|
@ -55,7 +55,7 @@ class EnvironmentEditModal extends ModalComponent {
|
||||
}
|
||||
|
||||
render () {
|
||||
const {environmentJSON} = this.state;
|
||||
const {environmentJSON, requestGroup} = this.state;
|
||||
|
||||
return (
|
||||
<Modal ref="modal" top={true} {...this.props}>
|
||||
@ -63,6 +63,7 @@ class EnvironmentEditModal extends ModalComponent {
|
||||
<ModalBody>
|
||||
<div className="pad-bottom">
|
||||
<Editor
|
||||
key={requestGroup ? requestGroup._id : 'n/a'}
|
||||
onChange={this._handleChange.bind(this)}
|
||||
value={environmentJSON}
|
||||
lightTheme={true}
|
||||
|
@ -35,7 +35,7 @@
|
||||
|
||||
.CodeMirror-lines {
|
||||
// Scroll past the end
|
||||
//padding-bottom: 50px;
|
||||
padding-bottom: 50px;
|
||||
}
|
||||
|
||||
.CodeMirror-placeholder {
|
||||
|
Loading…
Reference in New Issue
Block a user