Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/containers/UserSettings/UserSettings.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {Settings} from '@gravity-ui/navigation';
import {Text} from '@gravity-ui/uikit';

import {Setting} from './Setting';
import type {YDBEmbeddedUISettings} from './settings';
Expand Down Expand Up @@ -32,9 +33,17 @@ export const UserSettings = ({settings: userSettings}: UserSettingsProps) => {
</Settings.Item>
);
}
const {description, ...rest} = setting;
return (
<Settings.Item key={setting.title} {...setting}>
<Settings.Item
key={setting.title}
align="top"
{...rest}
>
<Setting {...setting} />
<Text color="secondary" as="div">
{description}
</Text>
Comment on lines +38 to +46
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A margin between setting control and text is needed

Screenshot 2025-01-16 at 17 39 27

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure... I've looked at navigation stories, and there's no additional space between control and text: https://preview.yandexcloud.dev/navigation/?path=/story/components-settings--showcase (see "Communication" tabl)

</Settings.Item>
);
})}
Expand Down
1 change: 1 addition & 0 deletions tests/suites/tenant/summary/objectSummary.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ test.describe('Object Summary', async () => {
'WriteAttributes',
'CreateDirectory',
'CreateTable',
'CreateQueue',
'RemoveSchema',
'AlterSchema',
],
Expand Down
Loading