Skip to content

Commit d38d01b

Browse files
authored
fix: cluster layout (#1507)
1 parent 0af72a4 commit d38d01b

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

src/components/TableWithControlsLayout/TableWithControlsLayout.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
@import '../../styles/mixins.scss';
22

33
.ydb-table-with-controls-layout {
4+
--data-table-sticky-top-offset: 62px;
5+
46
display: inline-block;
57

68
box-sizing: border-box;
@@ -31,11 +33,11 @@
3133
}
3234

3335
.ydb-paginated-table__head {
34-
top: 62px;
36+
top: var(--data-table-sticky-top-offset, 62px);
3537
}
3638

3739
.data-table__sticky_moving {
3840
// Place table head right after controls
39-
top: 62px !important;
41+
top: var(--data-table-sticky-top-offset, 62px) !important;
4042
}
4143
}

src/containers/Cluster/Cluster.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@import '../../styles/mixins.scss';
22

3-
.cluster {
3+
.ydb-cluster {
44
position: relative;
55

66
overflow: auto;
@@ -74,4 +74,8 @@
7474

7575
background-color: var(--g-color-base-background);
7676
}
77+
78+
.ydb-table-with-controls-layout {
79+
--data-table-sticky-top-offset: 102px;
80+
}
7781
}

src/containers/Cluster/Cluster.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import {clusterTabs, clusterTabsIds, getClusterPath, isClusterTab} from './utils
3838

3939
import './Cluster.scss';
4040

41-
const b = cn('cluster');
41+
const b = cn('ydb-cluster');
4242

4343
interface ClusterProps {
4444
additionalTenantsProps?: AdditionalTenantsProps;

0 commit comments

Comments
 (0)