Skip to content

Commit 525c2f1

Browse files
Fixed an issue where the result grid slowed down when large JSON data was loaded. #6510
1 parent 126e1fb commit 525c2f1

File tree

8 files changed

+433
-453
lines changed

8 files changed

+433
-453
lines changed

web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@
114114
"insert-if": "^1.1.0",
115115
"ip-address": "^10.0.1",
116116
"json-bignumber": "^1.0.1",
117-
"jsoneditor": "^10.1.2",
118117
"leaflet": "^1.9.4",
119118
"lodash": "4.*",
120119
"moment": "^2.29.4",
@@ -150,6 +149,7 @@
150149
"uplot": "^1.6.32",
151150
"uplot-react": "^1.1.4",
152151
"valid-filename": "^4.0.0",
152+
"vanilla-jsoneditor": "^3.3.1",
153153
"wkx": "^0.5.0",
154154
"zustand": "^5.0.3"
155155
},

web/pgadmin/static/js/Theme/overrides/codemirror.override.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ export default function cmOverride(theme) {
1111
const editor = theme.otherVars.editor;
1212
return {
1313
'.cm-editor': {
14+
// CSS variables for jsoneditor's CodeMirror
15+
'--jse-font-family-mono': theme.typography.fontFamilySourceCode,
16+
'--jse-panel-background': editor.guttersBg,
17+
'--jse-panel-color-readonly': editor.guttersFg,
18+
'--jse-panel-border': 'none',
1419
height: '100%',
1520
color: editor.fg,
1621
backgroundColor: editor.bg,

0 commit comments

Comments
 (0)