Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
@import '../../styles/mixins.scss';

.ydb-table-with-controls-layout {
--data-table-sticky-top-offset: 62px;

display: inline-block;

box-sizing: border-box;
Expand Down Expand Up @@ -31,11 +33,11 @@
}

.ydb-paginated-table__head {
top: 62px;
top: var(--data-table-sticky-top-offset, 62px);
}

.data-table__sticky_moving {
// Place table head right after controls
top: 62px !important;
top: var(--data-table-sticky-top-offset, 62px) !important;
Copy link
Member

@artemmufazalov artemmufazalov Oct 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use it for paginated table as well (ydb-paginated-table__head)

}
}
6 changes: 5 additions & 1 deletion src/containers/Cluster/Cluster.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import '../../styles/mixins.scss';

.cluster {
.ydb-cluster {
position: relative;

overflow: auto;
Expand Down Expand Up @@ -74,4 +74,8 @@

background-color: var(--g-color-base-background);
}

.ydb-table-with-controls-layout {
--data-table-sticky-top-offset: 102px;
}
}
2 changes: 1 addition & 1 deletion src/containers/Cluster/Cluster.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import {clusterTabs, clusterTabsIds, getClusterPath, isClusterTab} from './utils

import './Cluster.scss';

const b = cn('cluster');
const b = cn('ydb-cluster');

interface ClusterProps {
additionalTenantsProps?: AdditionalTenantsProps;
Expand Down
Loading