Skip to content

Commit 345cbfb

Browse files
authored
fix(ClusterInfo): increase fonts (#2299)
1 parent 1beef31 commit 345cbfb

File tree

6 files changed

+25
-13
lines changed

6 files changed

+25
-13
lines changed

src/components/Tags/Tags.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ interface TagsProps {
1212
export const Tags = ({tags, className = '', gap = 1}: TagsProps) => {
1313
return (
1414
<Flex className={className} gap={gap} wrap="wrap" alignItems="center">
15-
{tags && tags.map((tag, tagIndex) => <Label key={tagIndex}>{tag}</Label>)}
15+
{tags &&
16+
tags.map((tag, tagIndex) => (
17+
<Label size="s" key={tagIndex}>
18+
{tag}
19+
</Label>
20+
))}
1621
</Flex>
1722
);
1823
};

src/containers/Cluster/ClusterInfo/ClusterInfo.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
--g-definition-list-item-gap: var(--g-spacing-3);
55
padding: var(--g-spacing-4) 0 var(--g-spacing-2);
66

7+
@include mixins.body-2-typography();
8+
79
&__skeleton {
810
margin-top: 5px;
911
}

src/containers/Cluster/ClusterInfo/ClusterInfo.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const ClusterInfo = ({
5757
})}
5858
{linksList.length > 0 && (
5959
<DefinitionList.Item name={i18n('title_links')}>
60-
<Flex direction="column" gap={1}>
60+
<Flex direction="column" gap={2}>
6161
{linksList.map(({title, url}) => {
6262
return <LinkWithIcon key={title} title={title} url={url} />;
6363
})}
@@ -79,7 +79,7 @@ export const ClusterInfo = ({
7979
const renderDetailSection = () => {
8080
return (
8181
<InfoSection>
82-
<Text as="div" variant="subheader-1" className={b('section-title')}>
82+
<Text as="div" variant="subheader-2" className={b('section-title')}>
8383
{i18n('title_details')}
8484
</Text>
8585
{renderDetailsContent()}
@@ -96,9 +96,9 @@ export const ClusterInfo = ({
9696
}
9797
return (
9898
<InfoSection>
99-
<Text as="div" variant="subheader-1" className={b('section-title')}>
99+
<Text as="div" variant="subheader-2" className={b('section-title')}>
100100
{i18n('title_storage-groups')}{' '}
101-
<Text variant="subheader-1" color="secondary">
101+
<Text variant="subheader-2" color="secondary">
102102
{formatNumber(total)}
103103
</Text>
104104
</Text>

src/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStats.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1+
@use '../../../../../styles/mixins.scss';
2+
13
.ydb-disk-groups-stats {
2-
--g-definition-list-item-gap: var(--g-spacing-2);
4+
--g-definition-list-item-gap: var(--g-spacing-3);
5+
36
width: 287px;
47
padding: var(--g-spacing-3) var(--g-spacing-4);
58

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

12+
@include mixins.body-2-typography();
13+
914
&__progress {
1015
display: inline-block;
1116

src/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStats.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function DiskGroupsStats({stats, storageType}: GroupsStatsPopupContentPro
5050
{
5151
name: i18n('usage'),
5252
content: (
53-
<Flex gap={1} alignItems="center">
53+
<Flex gap={2} alignItems="center">
5454
<Progress
5555
theme={
5656
calculatedStatusToProgressTheme[
@@ -67,10 +67,10 @@ export function DiskGroupsStats({stats, storageType}: GroupsStatsPopupContentPro
6767
},
6868
];
6969
return (
70-
<Flex direction="column" gap={2} className={b()}>
71-
<Text>
70+
<Flex direction="column" gap={3} className={b()}>
71+
<Text variant="body-2">
7272
{storageType}{' '}
73-
<Text color="secondary">
73+
<Text color="secondary" variant="body-2">
7474
{`${formatNumber(stats.createdGroups)} ${i18n('context_of')} ${formatNumber(stats.totalGroups)}`}
7575
</Text>
7676
</Text>

src/containers/Cluster/ClusterInfo/utils/utils.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const getInfo = (cluster: TClusterInfo, additionalInfo: InfoItem[]) => {
4242
if (dataCenters?.length) {
4343
info.push({
4444
label: i18n('label_dc'),
45-
value: <Tags tags={dataCenters} gap={1} className={b('dc')} />,
45+
value: <Tags tags={dataCenters} gap={2} className={b('dc')} />,
4646
});
4747
}
4848

@@ -55,7 +55,7 @@ export const getInfo = (cluster: TClusterInfo, additionalInfo: InfoItem[]) => {
5555
<EntityStatus.Label
5656
withStatusName={false}
5757
status={state as EFlag}
58-
size="xs"
58+
size="s"
5959
key={state}
6060
iconSize={12}
6161
>
@@ -65,7 +65,7 @@ export const getInfo = (cluster: TClusterInfo, additionalInfo: InfoItem[]) => {
6565
});
6666
info.push({
6767
label: i18n('label_nodes-state'),
68-
value: <Flex gap={1}>{nodesStates}</Flex>,
68+
value: <Flex gap={2}>{nodesStates}</Flex>,
6969
});
7070
}
7171

0 commit comments

Comments
 (0)