Improve record table scroll look (#6753)

We had a regression on the record table as our inView hook was not able
to find the right div to compute its margin. This is because we are
identify this div by a hacky css selector as we don't have a direct
control on it (it's provided by our scrolling library)
This commit is contained in:
Charles Bochet
2024-08-27 19:10:11 +02:00
committed by GitHub
parent 9f69383aa2
commit 5ce1e6b07d

View File

@ -37,7 +37,7 @@ export const RecordTableRowWrapper = ({
const { ref: elementRef, inView } = useInView({
root: scrollWrapperRef.ref.current?.querySelector(
'[data-overlayscrollbars-viewport="scrollbarHidden"]',
'[data-overlayscrollbars-viewport]',
),
rootMargin: '1000px',
});