Skip to content

Commit c79dcf5

Browse files
Merge pull request #2200 from RedisInsight/fe/feature/RI-4542_json_font
#RI-4542 - add font Inconsolata in json view
2 parents ffb6820 + 2cfc997 commit c79dcf5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
.__json {
33
&-pretty__,
44
&-pretty-error__ {
5-
font: normal normal normal 13px/18px Graphik, sans-serif;
6-
letter-spacing: -0.13px;
5+
font: normal normal normal 13px/18px Inconsolata, monospace;
6+
letter-spacing: 0.15px;
77
padding: 0;
88
background: transparent;
99
color: var(--euiTextSubduedColor);

0 commit comments

Comments
 (0)