Skip to content

Commit acb39fa

Browse files
committed
fix(Tenant): align info in overview
1 parent 301e391 commit acb39fa

File tree

4 files changed

+23
-8
lines changed

4 files changed

+23
-8
lines changed

src/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
$section-title-margin: 20px;
2+
$section-title-line-height: 24px;
3+
14
.kv-detailed-overview {
25
display: flex;
36
gap: 20px;

src/containers/Tenant/Diagnostics/Healthcheck/Healthcheck.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,14 @@ class Healthcheck extends React.Component {
9797
</div>
9898
{this.renderUpdateButton()}
9999
</div>
100-
<div>
100+
<div className={b('preview-content')}>
101101
{text}
102102
{!statusOk && (
103-
<Button view="flat-info" onClick={showMoreHandler}>
103+
<Button
104+
view="flat-info"
105+
onClick={showMoreHandler}
106+
size="s"
107+
>
104108
Show details
105109
</Button>
106110
)}

src/containers/Tenant/Diagnostics/Healthcheck/Healthcheck.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@use '../DetailedOverview/DetailedOverview.scss' as detailedOverview;
12
@import '../../../../styles/mixins.scss';
23

34
.healthcheck {
@@ -37,14 +38,17 @@
3738

3839
&__status-wrapper {
3940
display: flex;
40-
align-items: baseline;
4141

42-
margin-bottom: 15px;
42+
margin-bottom: detailedOverview.$section-title-margin;
4343
gap: 8px;
4444
}
4545

4646
&__preview-title {
4747
font-weight: 600;
48+
line-height: detailedOverview.$section-title-line-height;
49+
}
50+
51+
&__preview-content {
4852
line-height: 24px;
4953
}
5054

src/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.scss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use '../DetailedOverview/DetailedOverview.scss' as detailedOverview;
2+
13
.tenant-overview {
24
padding-bottom: 20px;
35
&__loader {
@@ -30,13 +32,15 @@
3032
align-items: center;
3133

3234
margin-bottom: 10px;
35+
36+
line-height: 24px;
3337
}
3438

3539
&__top-label {
36-
margin-bottom: 20px;
40+
margin-bottom: detailedOverview.$section-title-margin;
3741

3842
font-weight: 600;
39-
line-height: 24px;
43+
line-height: detailedOverview.$section-title-line-height;
4044
gap: 10px;
4145
}
4246

@@ -54,7 +58,7 @@
5458
flex-wrap: wrap;
5559
align-items: center;
5660

57-
margin-bottom: 20px;
61+
margin-bottom: 35px;
5862
}
5963

6064
&__collapse-title {
@@ -88,7 +92,7 @@
8892
margin-bottom: 20px;
8993

9094
font-size: var(--yc-text-body-2-font-size);
91-
font-weight: 500;
95+
font-weight: 600;
9296
line-height: var(--yc-text-body-2-line-height);
9397
}
9498
}

0 commit comments

Comments
 (0)