Skip to content

Commit

Permalink
fix: fix tablet size (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
krosy1337 authored Jul 31, 2023
1 parent 46e705c commit 5a9b9d9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/components/Tablet/Tablet.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
display: flex;
justify-content: center;

width: 18px;
width: 23px;
height: 18px;

font-size: 10px;
Expand Down
25 changes: 14 additions & 11 deletions src/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import DataTable from '@gravity-ui/react-data-table';

import {EType} from '../types/api/tablet';

const SECOND = 1000;

export const AUTO_RELOAD_INTERVAL = 10 * SECOND;
Expand Down Expand Up @@ -40,17 +42,18 @@ export const TABLET_COLORS = {
};

export const TABLET_SYMBOLS = {
OldTxProxy: 'P',
TxProxy: 'P',
BSController: 'BS',
Dummy: 'DY',
RTMRPartition: 'RP',
PersQueueReadBalancer: 'PB',
Cms: 'CM',
BlockStorePartition: 'BP',
BlockStoreVolume: 'BV',
Console: 'CN',
TenantSlotBroker: 'TB',
[EType.OldTxProxy]: 'P',
[EType.TxProxy]: 'P',
[EType.BSController]: 'BS',
[EType.Dummy]: 'DY',
[EType.RTMRPartition]: 'RP',
[EType.PersQueueReadBalancer]: 'PB',
[EType.Cms]: 'CM',
[EType.BlockStorePartition]: 'BP',
[EType.BlockStoreVolume]: 'BV',
[EType.Console]: 'CN',
[EType.TenantSlotBroker]: 'TB',
[EType.BlockStoreDiskRegistry]: 'BDR',
};

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

0 comments on commit 5a9b9d9

Please sign in to comment.