Skip to content

fix(ClusterInfo): increase fonts #2299

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2025
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
7 changes: 6 additions & 1 deletion src/components/Tags/Tags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ interface TagsProps {
export const Tags = ({tags, className = '', gap = 1}: TagsProps) => {
return (
<Flex className={className} gap={gap} wrap="wrap" alignItems="center">
{tags && tags.map((tag, tagIndex) => <Label key={tagIndex}>{tag}</Label>)}
{tags &&
tags.map((tag, tagIndex) => (
<Label size="s" key={tagIndex}>
{tag}
</Label>
))}
</Flex>
);
};
2 changes: 2 additions & 0 deletions src/containers/Cluster/ClusterInfo/ClusterInfo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
--g-definition-list-item-gap: var(--g-spacing-3);
padding: var(--g-spacing-4) 0 var(--g-spacing-2);

@include mixins.body-2-typography();

&__skeleton {
margin-top: 5px;
}
Expand Down
8 changes: 4 additions & 4 deletions src/containers/Cluster/ClusterInfo/ClusterInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const ClusterInfo = ({
})}
{linksList.length > 0 && (
<DefinitionList.Item name={i18n('title_links')}>
<Flex direction="column" gap={1}>
<Flex direction="column" gap={2}>
{linksList.map(({title, url}) => {
return <LinkWithIcon key={title} title={title} url={url} />;
})}
Expand All @@ -79,7 +79,7 @@ export const ClusterInfo = ({
const renderDetailSection = () => {
return (
<InfoSection>
<Text as="div" variant="subheader-1" className={b('section-title')}>
<Text as="div" variant="subheader-2" className={b('section-title')}>
{i18n('title_details')}
</Text>
{renderDetailsContent()}
Expand All @@ -96,9 +96,9 @@ export const ClusterInfo = ({
}
return (
<InfoSection>
<Text as="div" variant="subheader-1" className={b('section-title')}>
<Text as="div" variant="subheader-2" className={b('section-title')}>
{i18n('title_storage-groups')}{' '}
<Text variant="subheader-1" color="secondary">
<Text variant="subheader-2" color="secondary">
{formatNumber(total)}
</Text>
</Text>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
@use '../../../../../styles/mixins.scss';

.ydb-disk-groups-stats {
--g-definition-list-item-gap: var(--g-spacing-2);
--g-definition-list-item-gap: var(--g-spacing-3);

width: 287px;
padding: var(--g-spacing-3) var(--g-spacing-4);

border-radius: var(--g-border-radius-s);
background-color: var(--g-color-base-generic-ultralight);

@include mixins.body-2-typography();

&__progress {
display: inline-block;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function DiskGroupsStats({stats, storageType}: GroupsStatsPopupContentPro
{
name: i18n('usage'),
content: (
<Flex gap={1} alignItems="center">
<Flex gap={2} alignItems="center">
<Progress
theme={
calculatedStatusToProgressTheme[
Expand All @@ -67,10 +67,10 @@ export function DiskGroupsStats({stats, storageType}: GroupsStatsPopupContentPro
},
];
return (
<Flex direction="column" gap={2} className={b()}>
<Text>
<Flex direction="column" gap={3} className={b()}>
<Text variant="body-2">
{storageType}{' '}
<Text color="secondary">
<Text color="secondary" variant="body-2">
{`${formatNumber(stats.createdGroups)} ${i18n('context_of')} ${formatNumber(stats.totalGroups)}`}
</Text>
</Text>
Expand Down
6 changes: 3 additions & 3 deletions src/containers/Cluster/ClusterInfo/utils/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const getInfo = (cluster: TClusterInfo, additionalInfo: InfoItem[]) => {
if (dataCenters?.length) {
info.push({
label: i18n('label_dc'),
value: <Tags tags={dataCenters} gap={1} className={b('dc')} />,
value: <Tags tags={dataCenters} gap={2} className={b('dc')} />,
});
}

Expand All @@ -55,7 +55,7 @@ export const getInfo = (cluster: TClusterInfo, additionalInfo: InfoItem[]) => {
<EntityStatus.Label
withStatusName={false}
status={state as EFlag}
size="xs"
size="s"
key={state}
iconSize={12}
>
Expand All @@ -65,7 +65,7 @@ export const getInfo = (cluster: TClusterInfo, additionalInfo: InfoItem[]) => {
});
info.push({
label: i18n('label_nodes-state'),
value: <Flex gap={1}>{nodesStates}</Flex>,
value: <Flex gap={2}>{nodesStates}</Flex>,
});
}

Expand Down
Loading