Skip to content

Commit 03dd19b

Browse files
fix(StorageControls): move group by label
1 parent e68eb32 commit 03dd19b

File tree

1 file changed

+27
-21
lines changed

1 file changed

+27
-21
lines changed

src/containers/Storage/StorageControls/StorageControls.tsx

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22

33
import type {TableColumnSetupItem} from '@gravity-ui/uikit';
4-
import {Select, TableColumnSetup} from '@gravity-ui/uikit';
4+
import {Select, TableColumnSetup, Text} from '@gravity-ui/uikit';
55

66
import {EntitiesCount} from '../../../components/EntitiesCount/EntitiesCount';
77
import {Search} from '../../../components/Search/Search';
@@ -83,17 +83,19 @@ export function StorageGroupsControls({
8383
sortable={false}
8484
/>
8585
{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>
9799
) : null}
98100
</React.Fragment>
99101
);
@@ -161,15 +163,19 @@ export function StorageNodesControls({
161163
sortable={false}
162164
/>
163165
{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>
173179
) : null}
174180
</React.Fragment>
175181
);

0 commit comments

Comments
 (0)