|
1 | 1 | import React from 'react'; |
2 | 2 |
|
3 | 3 | import type {TableColumnSetupItem} from '@gravity-ui/uikit'; |
4 | | -import {Select, TableColumnSetup} from '@gravity-ui/uikit'; |
| 4 | +import {Select, TableColumnSetup, Text} from '@gravity-ui/uikit'; |
5 | 5 |
|
6 | 6 | import {EntitiesCount} from '../../../components/EntitiesCount/EntitiesCount'; |
7 | 7 | import {Search} from '../../../components/Search/Search'; |
@@ -83,17 +83,19 @@ export function StorageGroupsControls({ |
83 | 83 | sortable={false} |
84 | 84 | /> |
85 | 85 | {withGroupBySelect ? ( |
86 | | - <Select |
87 | | - hasClear |
88 | | - placeholder={'-'} |
89 | | - label={i18n('controls_group-by-placeholder')} |
90 | | - width={240} |
91 | | - defaultValue={ |
92 | | - storageGroupsGroupByParam ? [storageGroupsGroupByParam] : undefined |
93 | | - } |
94 | | - onUpdate={handleGroupBySelectUpdate} |
95 | | - options={STORAGE_GROUPS_GROUP_BY_OPTIONS} |
96 | | - /> |
| 86 | + <React.Fragment> |
| 87 | + <Text variant="body-2">{i18n('controls_group-by-placeholder')}</Text> |
| 88 | + <Select |
| 89 | + hasClear |
| 90 | + placeholder={'-'} |
| 91 | + width={170} |
| 92 | + defaultValue={ |
| 93 | + storageGroupsGroupByParam ? [storageGroupsGroupByParam] : undefined |
| 94 | + } |
| 95 | + onUpdate={handleGroupBySelectUpdate} |
| 96 | + options={STORAGE_GROUPS_GROUP_BY_OPTIONS} |
| 97 | + /> |
| 98 | + </React.Fragment> |
97 | 99 | ) : null} |
98 | 100 | </React.Fragment> |
99 | 101 | ); |
@@ -161,15 +163,19 @@ export function StorageNodesControls({ |
161 | 163 | sortable={false} |
162 | 164 | /> |
163 | 165 | {withGroupBySelect ? ( |
164 | | - <Select |
165 | | - hasClear |
166 | | - placeholder={'-'} |
167 | | - label={i18n('controls_group-by-placeholder')} |
168 | | - width={240} |
169 | | - defaultValue={storageNodesGroupByParam ? [storageNodesGroupByParam] : undefined} |
170 | | - onUpdate={handleGroupBySelectUpdate} |
171 | | - options={STORAGE_NODES_GROUP_BY_OPTIONS} |
172 | | - /> |
| 166 | + <React.Fragment> |
| 167 | + <Text variant="body-2">{i18n('controls_group-by-placeholder')}</Text> |
| 168 | + <Select |
| 169 | + hasClear |
| 170 | + placeholder={'-'} |
| 171 | + width={170} |
| 172 | + defaultValue={ |
| 173 | + storageNodesGroupByParam ? [storageNodesGroupByParam] : undefined |
| 174 | + } |
| 175 | + onUpdate={handleGroupBySelectUpdate} |
| 176 | + options={STORAGE_NODES_GROUP_BY_OPTIONS} |
| 177 | + /> |
| 178 | + </React.Fragment> |
173 | 179 | ) : null} |
174 | 180 | </React.Fragment> |
175 | 181 | ); |
|
0 commit comments