Skip to content

Commit 7545c2e

Browse files
#RI-4542 - add font Inconsolata in json view
1 parent 07709bf commit 7545c2e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

redisinsight/ui/src/components/json-viewer/JSONViewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interface Props {
99
}
1010

1111
const JSONViewer = (props: Props) => {
12-
const { value, expanded = false, space = 4 } = props
12+
const { value, expanded = false, space = 2 } = props
1313

1414
try {
1515
JSON.parse(value)

redisinsight/ui/src/packages/clients-list/src/components/json-view/JSONView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const JSONView = (props: Props) => {
3131
)}
3232
{!formattedValue && (
3333
<div className="jsonViewer" data-testid="json-view">
34-
<JSONPretty json={value} space={4} />
34+
<JSONPretty json={value} space={2} />
3535
</div>
3636
)}
3737
</>

redisinsight/ui/src/styles/components/_json_view.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.__json {
33
&-pretty__,
44
&-pretty-error__ {
5-
font: normal normal normal 13px/18px Graphik, sans-serif;
5+
font: normal normal normal 13px/18px Inconsolata, monospace;
66
letter-spacing: -0.13px;
77
padding: 0;
88
background: transparent;

0 commit comments

Comments
 (0)