Skip to content

Commit 5a9b9d9

Browse files
authored
fix: fix tablet size (#490)
1 parent 46e705c commit 5a9b9d9

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

src/components/Tablet/Tablet.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
display: flex;
33
justify-content: center;
44

5-
width: 18px;
5+
width: 23px;
66
height: 18px;
77

88
font-size: 10px;

src/utils/constants.ts

+14-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import DataTable from '@gravity-ui/react-data-table';
22

3+
import {EType} from '../types/api/tablet';
4+
35
const SECOND = 1000;
46

57
export const AUTO_RELOAD_INTERVAL = 10 * SECOND;
@@ -40,17 +42,18 @@ export const TABLET_COLORS = {
4042
};
4143

4244
export const TABLET_SYMBOLS = {
43-
OldTxProxy: 'P',
44-
TxProxy: 'P',
45-
BSController: 'BS',
46-
Dummy: 'DY',
47-
RTMRPartition: 'RP',
48-
PersQueueReadBalancer: 'PB',
49-
Cms: 'CM',
50-
BlockStorePartition: 'BP',
51-
BlockStoreVolume: 'BV',
52-
Console: 'CN',
53-
TenantSlotBroker: 'TB',
45+
[EType.OldTxProxy]: 'P',
46+
[EType.TxProxy]: 'P',
47+
[EType.BSController]: 'BS',
48+
[EType.Dummy]: 'DY',
49+
[EType.RTMRPartition]: 'RP',
50+
[EType.PersQueueReadBalancer]: 'PB',
51+
[EType.Cms]: 'CM',
52+
[EType.BlockStorePartition]: 'BP',
53+
[EType.BlockStoreVolume]: 'BV',
54+
[EType.Console]: 'CN',
55+
[EType.TenantSlotBroker]: 'TB',
56+
[EType.BlockStoreDiskRegistry]: 'BDR',
5457
};
5558

5659
const isTabletType = (type: string): type is keyof typeof TABLET_SYMBOLS => type in TABLET_SYMBOLS;

0 commit comments

Comments
 (0)