Skip to content

Commit 642ea32

Browse files
committed
fix: style fixes
1 parent 89ed060 commit 642ea32

File tree

4 files changed

+14
-31
lines changed

4 files changed

+14
-31
lines changed

src/containers/Tenant/Diagnostics/Diagnostics.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
height: 100%;
99

1010
&__header-wrapper {
11-
padding: 0 20px;
11+
padding: 0 var(--g-spacing-5);
1212

1313
background-color: var(--g-color-base-background);
1414
}

src/containers/Tenant/Diagnostics/TopQueries/QueryDetails.scss

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
&__actions {
2828
display: flex;
29-
gap: 8px;
29+
gap: var(--g-spacing-2);
3030
}
3131

3232
&__content {
@@ -56,16 +56,9 @@
5656

5757
overflow: hidden;
5858

59-
margin-top: 20px;
59+
margin-top: var(--g-spacing-5);
6060

6161
border-radius: 4px;
6262
background-color: var(--code-background-color);
63-
64-
pre {
65-
max-height: 100%;
66-
margin: 0 !important;
67-
68-
background-color: transparent !important;
69-
}
7063
}
7164
}

src/containers/Tenant/Diagnostics/TopQueries/i18n/en.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,5 @@
88
"query-details.title": "Query Details",
99
"query-details.open-in-editor": "Open in Editor",
1010
"query-details.close": "Close",
11-
"query-details.query-hash": "Query Hash",
12-
"query-details.cpu-time": "CPU Time",
13-
"query-details.duration": "Duration",
14-
"query-details.read-bytes": "Read Bytes",
15-
"query-details.request-units": "Request Units",
16-
"query-details.end-time": "End Time",
17-
"query-details.read-rows": "Read Rows",
18-
"query-details.user-sid": "User SID",
19-
"query-details.application-name": "Application Name",
20-
"query-details.query-start-at": "Query Start Time",
2111
"query-details.query.title": "Query Text"
2212
}

src/containers/Tenant/Diagnostics/TopQueries/utils.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
getRunningQueriesColumnSortField,
1717
getTopQueriesColumnSortField,
1818
} from './columns/constants';
19-
import i18n from './i18n';
19+
import columnsI18n from './columns/i18n';
2020

2121
export const TOP_QUERIES_TABLE_SETTINGS: Settings = {
2222
...QUERY_TABLE_SETTINGS,
@@ -46,70 +46,70 @@ export function createQueryInfoItems(data: KeyValueRow): InfoViewerItem[] {
4646

4747
if (data.QueryText) {
4848
items.push({
49-
label: i18n('query-details.query-hash'),
49+
label: columnsI18n('query-hash'),
5050
value: generateHash(String(data.QueryText)),
5151
});
5252
}
5353

5454
if (data.CPUTimeUs !== undefined) {
5555
items.push({
56-
label: i18n('query-details.cpu-time'),
56+
label: columnsI18n('cpu-time'),
5757
value: formatToMs(parseUsToMs(data.CPUTimeUs ?? undefined)),
5858
});
5959
}
6060

6161
if (data.Duration !== undefined) {
6262
items.push({
63-
label: i18n('query-details.duration'),
63+
label: columnsI18n('duration'),
6464
value: formatToMs(parseUsToMs(data.Duration ?? undefined)),
6565
});
6666
}
6767

6868
if (data.ReadBytes !== undefined) {
6969
items.push({
70-
label: i18n('query-details.read-bytes'),
70+
label: columnsI18n('read-bytes'),
7171
value: formatNumber(data.ReadBytes),
7272
});
7373
}
7474

7575
if (data.RequestUnits !== undefined) {
7676
items.push({
77-
label: i18n('query-details.request-units'),
77+
label: columnsI18n('request-units'),
7878
value: formatNumber(data.RequestUnits),
7979
});
8080
}
8181

8282
if (data.EndTime) {
8383
items.push({
84-
label: i18n('query-details.end-time'),
84+
label: columnsI18n('end-time'),
8585
value: formatDateTime(new Date(data.EndTime as string).getTime()),
8686
});
8787
}
8888

8989
if (data.ReadRows !== undefined) {
9090
items.push({
91-
label: i18n('query-details.read-rows'),
91+
label: columnsI18n('read-rows'),
9292
value: formatNumber(data.ReadRows),
9393
});
9494
}
9595

9696
if (data.UserSID) {
9797
items.push({
98-
label: i18n('query-details.user-sid'),
98+
label: columnsI18n('user'),
9999
value: data.UserSID,
100100
});
101101
}
102102

103103
if (data.ApplicationName) {
104104
items.push({
105-
label: i18n('query-details.application-name'),
105+
label: columnsI18n('application'),
106106
value: data.ApplicationName,
107107
});
108108
}
109109

110110
if (data.QueryStartAt) {
111111
items.push({
112-
label: i18n('query-details.query-start-at'),
112+
label: columnsI18n('start-time'),
113113
value: formatDateTime(new Date(data.QueryStartAt as string).getTime()),
114114
});
115115
}

0 commit comments

Comments
 (0)