Skip to content

Commit 3cf8432

Browse files
committed
fix: cluster layout
1 parent dbe83b2 commit 3cf8432

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

src/components/TableWithControlsLayout/TableWithControlsLayout.scss

Lines changed: 3 additions & 1 deletion
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;
@@ -36,6 +38,6 @@
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)