Adjust sticky header to align with sidebar
This commit is contained in:
parent
b5ad30a9bc
commit
3e9fb521f0
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ export const useFixedTableHeader = () => {
|
||||||
const tableContainerRef = useRef<HTMLDivElement | null>(null);
|
const tableContainerRef = useRef<HTMLDivElement | null>(null);
|
||||||
|
|
||||||
const isNotPastTableIntersection = useInView(intersectRef, {
|
const isNotPastTableIntersection = useInView(intersectRef, {
|
||||||
margin: '-64px 0px 0px 0px',
|
margin: '-63px 0px 0px 0px',
|
||||||
});
|
});
|
||||||
|
|
||||||
const tableInView = useInView(tableContainerRef, {
|
const tableInView = useInView(tableContainerRef, {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
.ag-header-fixed {
|
.ag-header-fixed {
|
||||||
position: fixed !important;
|
position: fixed !important;
|
||||||
top: 61px;
|
top: 60px;
|
||||||
z-index: 15;
|
z-index: 15;
|
||||||
background: var(--table-header-bg) !important;
|
background: var(--table-header-bg) !important;
|
||||||
margin: 0 -2rem;
|
margin: 0 -2rem;
|
||||||
|
|
Reference in a new issue