Skip to content

Commit 66baaec

Browse files
committed
refactor(Storage): move filters out of scrollable container
1 parent 017f5f3 commit 66baaec

File tree

3 files changed

+6
-21
lines changed

3 files changed

+6
-21
lines changed

src/containers/Storage/Storage.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ const FILTER_OPTIONS = {
4040
const tableSettings = {
4141
...DEFAULT_TABLE_SETTINGS,
4242
defaultOrder: DataTable.DESCENDING,
43-
stickyTop: 62,
4443
};
4544

4645
class Storage extends React.Component {

src/containers/Storage/Storage.scss

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,20 @@
11
@import '../../styles/mixins.scss';
22

33
.global-storage {
4-
display: flex;
5-
overflow: auto;
6-
flex-direction: column;
7-
align-items: flex-start;
8-
94
height: 100%;
105
max-height: 100%;
6+
@include flex-container;
117

128
&__controls {
13-
position: sticky;
14-
z-index: 2;
15-
top: 0;
16-
17-
width: 100%;
18-
19-
background-color: var(--yc-color-base-background);
209
@include controls();
2110
}
2211
&__search {
2312
@include search();
2413
}
2514

2615
&__table-wrapper {
27-
display: flex;
28-
flex: 1 1 auto;
29-
flex-direction: column;
30-
31-
min-width: 100%;
16+
overflow: auto;
17+
flex-grow: 1;
3218

3319
font-size: var(--yc-text-body2-font-size);
3420
line-height: var(--yc-text-body2-line-height);

src/containers/Tenant/Diagnostics/Diagnostics.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040
padding: 0 20px;
4141

4242
& .global-storage {
43-
height: calc(100% + 16px);
44-
max-height: calc(100% + 16px);
45-
margin-top: -16px;
43+
&__controls {
44+
padding-top: 0;
45+
}
4646
}
4747
}
4848
}

0 commit comments

Comments
 (0)