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

fix: date-picker flips in records cell even when there is enough space #7905

Merged
merged 2 commits into from
Oct 23, 2024

Conversation

harshrajeevsingh
Copy link
Contributor

Fixes: #7897

This PR fixes the flipping of the date-picker in the record's cell even if there is enough space below the table.
I attached a screencast to show that it's working fine now.

With this, it only flips when there is less space to accommodate the date-picker comp. Also, I tested this after adding lots of records to see if the scrolling behaviour is intact or not. And I found no issues, it's working as expected.

Screencast.from.2024-10-21.13-39-42.webm

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 pull request addresses an issue with the date-picker component in record cells flipping unnecessarily when there's sufficient space below the table.

  • Removed overflow: hidden from StyledTbody in packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableBodyDroppable.tsx
  • Fix allows date-picker to display correctly without flipping when space is available
  • Change maintains scrolling behavior for tables with varying numbers of records
  • Resolves issue Date Picker flips above even when there is enough space. #7897, which was more noticeable with fewer records in the table
  • Improves user experience by ensuring consistent date-picker positioning

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

Copy link
Member

@FelixMalfait FelixMalfait left a comment

Choose a reason for hiding this comment

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

Great, thanks!

@FelixMalfait
Copy link
Member

/award 150

@FelixMalfait FelixMalfait merged commit dd6b8be into twentyhq:main Oct 23, 2024
18 checks passed
Copy link

oss-gg bot commented Oct 23, 2024

Awarding harshrajeevsingh: 150 points 🕹️ Well done! Check out your new contribution on oss.gg/harshrajeevsingh

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.

Date Picker flips above even when there is enough space.
3 participants