Skip to content

Commit

Permalink
Fix bug causing query response data to extend past screen boundaries
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahpw committed May 25, 2023
1 parent 5cfbee8 commit c4ccc12
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion quell-extension/dist/panel.bundle.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion quell-extension/src/pages/Panel/Components/ClientTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ const RequestDetails = ({ clickedRowData, queryTime } = props) => {
<>
<CodeMirror
className="client_editor"
value={beautify(clickedRowData.responseData, null, 2, 80)}
value={JSON.stringify(clickedRowData.responseData, null, 2)}
// value={beautify(clickedRowData.responseData, null, 2, 80)}
options={{
theme: 'material-darker',
mode: 'json',
Expand Down
8 changes: 5 additions & 3 deletions quell-extension/src/pages/Panel/Components/OutputEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ const OutputEditor = ({results}) => {

useEffect(() => {
if (Object.keys(results).length > 0) {
setOutput(beautify(results, null, 2, 80));
// setOutput(beautify(results, null, 2, 80));
setOutput(JSON.stringify(results, null, 2));
}
}, [results])

Expand All @@ -21,8 +22,9 @@ const OutputEditor = ({results}) => {
value={output}
options={{
theme: 'material-darker',
lineNumbers: false,
mode:'json'
// lineNumbers: false,
mode:'json',
scrollbarStyle: 'null'
}}
/>
);
Expand Down
1 change: 0 additions & 1 deletion quell-extension/src/pages/Panel/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ tr:hover {
.query_output_editor .CodeMirror {
height: calc(100vh - 70px);
min-height: 200px;

}
}

Expand Down

0 comments on commit c4ccc12

Please sign in to comment.