Skip to content

Commit e27749a

Browse files
fix: correct width for columns with ProgressViewer (#1522)
1 parent 017c82a commit e27749a

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/components/nodesColumns/columns.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ export function getMemoryColumn<
107107
/>
108108
),
109109
align: DataTable.LEFT,
110-
width: 140,
111-
resizeMinWidth: 140,
110+
width: 170,
111+
resizeMinWidth: 170,
112112
};
113113
}
114114
export function getSharedCacheUsageColumn<
@@ -126,8 +126,8 @@ export function getSharedCacheUsageColumn<
126126
/>
127127
),
128128
align: DataTable.LEFT,
129-
width: 140,
130-
resizeMinWidth: 140,
129+
width: 170,
130+
resizeMinWidth: 170,
131131
};
132132
}
133133
export function getCpuColumn<T extends {PoolStats?: TPoolStats[]}>(): Column<T> {
@@ -162,8 +162,8 @@ export function getLoadAverageColumn<T extends {LoadAveragePercents?: number[]}>
162162
/>
163163
),
164164
align: DataTable.LEFT,
165-
width: 140,
166-
resizeMinWidth: 140,
165+
width: 170,
166+
resizeMinWidth: 170,
167167
};
168168
}
169169
// The same as loadAverage, but more compact

src/containers/Clusters/columns.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export const CLUSTERS_COLUMNS: Column<PreparedCluster>[] = [
146146
{
147147
name: COLUMNS_NAMES.NODES,
148148
header: COLUMNS_TITLES[COLUMNS_NAMES.NODES],
149-
resizeMinWidth: 140,
149+
resizeMinWidth: 170,
150150
defaultOrder: DataTable.DESCENDING,
151151
sortAccessor: ({cluster = {}}) => {
152152
const {NodesTotal = 0} = cluster;
@@ -166,7 +166,7 @@ export const CLUSTERS_COLUMNS: Column<PreparedCluster>[] = [
166166
{
167167
name: COLUMNS_NAMES.LOAD,
168168
header: COLUMNS_TITLES[COLUMNS_NAMES.LOAD],
169-
resizeMinWidth: 140,
169+
resizeMinWidth: 170,
170170
defaultOrder: DataTable.DESCENDING,
171171
sortAccessor: ({cluster}) => {
172172
return cluster?.NumberOfCpus;
@@ -184,7 +184,7 @@ export const CLUSTERS_COLUMNS: Column<PreparedCluster>[] = [
184184
{
185185
name: COLUMNS_NAMES.STORAGE,
186186
header: COLUMNS_TITLES[COLUMNS_NAMES.STORAGE],
187-
resizeMinWidth: 140,
187+
resizeMinWidth: 170,
188188
defaultOrder: DataTable.DESCENDING,
189189
sortAccessor: ({cluster}) => {
190190
return Number(cluster?.StorageTotal);

src/containers/Node/NodeStructure/Pdisk.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function getColumns({
118118
{
119119
name: VDiskTableColumnsIds.Size,
120120
header: vDiskTableColumnsNames[VDiskTableColumnsIds.Size],
121-
width: 100,
121+
width: 170,
122122
render: ({row}) => {
123123
return (
124124
<ProgressViewer

src/containers/Versions/NodesTable/NodesTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ const columns: Column<PreparedNodeSystemState>[] = [
9292
header: 'Load average',
9393
sortAccessor: ({LoadAveragePercents = []}) => LoadAveragePercents[0],
9494
defaultOrder: DataTable.DESCENDING,
95-
width: 140,
96-
resizeMinWidth: 140,
95+
width: 170,
96+
resizeMinWidth: 170,
9797
render: ({row}) =>
9898
row.LoadAveragePercents && row.LoadAveragePercents.length > 0 ? (
9999
<ProgressViewer

0 commit comments

Comments
 (0)