Skip to content

Commit 8ed6076

Browse files
fix(DetailedOverview): prevent tenant info scroll on overflow (#434)
1 parent ba93ab8 commit 8ed6076

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,19 @@ $section-title-line-height: 24px;
33

44
.kv-detailed-overview {
55
display: flex;
6-
gap: 20px;
76

7+
width: 100%;
88
height: 100%;
9+
gap: 20px;
910

1011
&__section {
1112
display: flex;
1213
overflow-x: hidden;
1314
flex: 0 0 calc(50% - 10px);
1415
flex-direction: column;
16+
17+
min-width: 300px;
18+
height: max-content;
1519
}
1620

1721
&__modal {

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
@import '@gravity-ui/uikit/styles/mixins.scss';
44

55
.healthcheck {
6-
// Since most of the inner containers have fixed width, we can set fixed width here as well
7-
// Thus we will get rid of unneeded layout shift when scrollbar appear
8-
min-width: 885px;
6+
&_expanded {
7+
// Since most of the inner containers have fixed width, we can set fixed width here as well
8+
// Thus we will get rid of unneeded layout shift when scrollbar appear
9+
min-width: 885px;
10+
}
911

1012
&__details {
1113
padding: 25px 20px 20px;

src/containers/Tenant/Diagnostics/Healthcheck/Healthcheck.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,5 @@ export const Healthcheck = (props: HealthcheckProps) => {
9999
return <div className="error">{i18n('no-data')}</div>;
100100
};
101101

102-
return <div className={b()}>{renderContent()}</div>;
102+
return <div className={b({expanded: !preview})}>{renderContent()}</div>;
103103
};

0 commit comments

Comments
 (0)