Skip to content

Commit

Permalink
Improve record table scroll look (#6753)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
charlesBochet authored Aug 27, 2024
1 parent 9f69383 commit 5ce1e6b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
});
Expand Down

0 comments on commit 5ce1e6b

Please sign in to comment.