Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make AggregateFooter on top if table isScrollable #9721

Closed
wants to merge 1 commit into from

Conversation

charlesBochet
Copy link
Member

No description provided.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR modifies the scroll behavior and positioning of the aggregate footer in the record table by integrating OverlayScrollbars instance management and simplifying container structure.

  • Added instance property to ScrollWrapperContextValue in /packages/twenty-front/src/modules/ui/utilities/scroll/contexts/ScrollWrapperContexts.tsx for scroll control
  • Removed nested container structure and height constraints in /packages/twenty-front/src/modules/object-record/record-table/components/RecordTableWithWrappers.tsx
  • Added problematic debug console.log statements in /packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableBodyFetchMoreLoader.tsx
  • Simplified ScrollWrapper component by removing StyledInnerContainer and exposing OverlayScrollbars instance

4 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

Comment on lines +61 to +66
if (scrollWrapperRef.instance !== null) {
console.log(
(scrollWrapperRef.instance as any)().elements().content.scrollHeight,
(scrollWrapperRef.instance as any)().elements().content.clientHeight,
);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

style: Debug console.log should not be committed to production code. Consider using a debug flag or removing entirely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant