Skip to content

Commit bba245f

Browse files
authored
fix: json inspector styles (#1008)
1 parent 2d0181d commit bba245f

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/containers/Tenant/Query/ExplainResult/ExplainResult.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,8 @@
4747
&__inspector {
4848
overflow-y: auto;
4949

50-
width: 100%;
5150
padding: 15px 20px;
5251
@include json-tree-styles();
53-
& .json-inspector__leaf.json-inspector__leaf_root.json-inspector__leaf_composite {
54-
max-width: calc(100% - 50px);
55-
}
5652

5753
&_fullscreen {
5854
padding: 10px;

src/styles/mixins.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,10 @@
196196
}
197197

198198
@mixin json-tree-styles {
199+
width: 100%;
200+
201+
word-wrap: break-word;
202+
199203
// stylelint-disable
200204
font-family: var(--g-font-family-monospace) !important;
201205
font-size: var(--g-text-code-1-font-size) !important;
@@ -276,4 +280,8 @@
276280
color: var(--g-color-text-primary);
277281
}
278282
}
283+
284+
& .json-inspector__leaf.json-inspector__leaf_root.json-inspector__leaf_composite {
285+
max-width: calc(100% - 50px);
286+
}
279287
}

0 commit comments

Comments
 (0)