mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
Fix Codemirror single line scroll quirk
This commit is contained in:
parent
3853f3dcd7
commit
207978bb23
@ -251,11 +251,9 @@ class ResponsePane extends PureComponent {
|
||||
<span className="bubble">{cookieHeaders.length}</span>) : null}
|
||||
</Button>
|
||||
</Tab>
|
||||
{(response.timeline && response.timeline.length > 0) && (
|
||||
<Tab>
|
||||
<Button onClick={this._trackTab} value="Timeline">Timeline</Button>
|
||||
</Tab>
|
||||
)}
|
||||
<Tab>
|
||||
<Button onClick={this._trackTab} value="Timeline">Timeline</Button>
|
||||
</Tab>
|
||||
</TabList>
|
||||
<TabPanel>
|
||||
<ResponseViewer
|
||||
@ -297,17 +295,15 @@ class ResponsePane extends PureComponent {
|
||||
/>
|
||||
</div>
|
||||
</TabPanel>
|
||||
{(response.timeline && response.timeline.length > 0) && (
|
||||
<TabPanel>
|
||||
<ResponseTimelineViewer
|
||||
key={response._id}
|
||||
timeline={response.timeline || []}
|
||||
editorLineWrapping={editorLineWrapping}
|
||||
editorFontSize={editorFontSize}
|
||||
editorIndentSize={editorIndentSize}
|
||||
/>
|
||||
</TabPanel>
|
||||
)}
|
||||
<TabPanel>
|
||||
<ResponseTimelineViewer
|
||||
key={response._id}
|
||||
timeline={response.timeline || []}
|
||||
editorLineWrapping={editorLineWrapping}
|
||||
editorFontSize={editorFontSize}
|
||||
editorIndentSize={editorIndentSize}
|
||||
/>
|
||||
</TabPanel>
|
||||
</Tabs>
|
||||
<ResponseTimer
|
||||
handleCancel={cancelCurrentRequest}
|
||||
|
@ -20,16 +20,13 @@
|
||||
}
|
||||
|
||||
.CodeMirror {
|
||||
/*
|
||||
* NOTE: This screws up CodeMirror's scroll height calculations, but that's okay
|
||||
* for now since we can only have one line here
|
||||
*/
|
||||
padding: inherit !important;
|
||||
padding-left: inherit !important;
|
||||
padding-right: inherit !important;
|
||||
color: inherit !important;
|
||||
margin: 0 0 0 -4px; // to undo CodeMirror's .CodeMirror-line offset
|
||||
}
|
||||
|
||||
.CodeMirror-lines {
|
||||
margin-left: -4px; // Undo CodeMirror-line left margin
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
|
14
package.json
14
package.json
@ -93,7 +93,6 @@
|
||||
"target": [
|
||||
"AppImage",
|
||||
"deb",
|
||||
"snap",
|
||||
"tar.gz"
|
||||
]
|
||||
},
|
||||
@ -107,19 +106,6 @@
|
||||
"libnss3",
|
||||
"libcurl3"
|
||||
]
|
||||
},
|
||||
"snap": {
|
||||
"stagePackages": [
|
||||
"libnotify4",
|
||||
"libappindicator1",
|
||||
"libxtst6",
|
||||
"libnss3",
|
||||
"libxss1",
|
||||
"fontconfig-config",
|
||||
"gconf2",
|
||||
"libasound2",
|
||||
"libcurl3"
|
||||
]
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
|
Loading…
Reference in New Issue
Block a user