Fix Codemirror single line scroll quirk

This commit is contained in:
Gregory Schier 2017-07-17 15:17:31 -07:00
parent 3853f3dcd7
commit 207978bb23
3 changed files with 15 additions and 36 deletions

View File

@ -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}

View File

@ -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;
}

View File

@ -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": {