mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
Adjust sticky header to align with sidebar
This commit is contained in:
@@ -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 New Issue
Block a user