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 overflow #7514

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

harshrajeevsingh
Copy link
Contributor

Fixes #7014

This PR fixes date-picker overflow across all screen sizes.

Before:
Screenshot from 2024-10-08 23-54-20

After:
Screencast from 2024-10-08 23-41-36.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 PR addresses the date-picker overflow issue across all screen sizes, focusing on the DateInput component in the Twenty frontend.

  • Removed absolute positioning and top property from StyledCalendarContainer in DateInput.tsx
  • Prevents date picker from clipping through navigation bar in mobile views
  • Improves date picker positioning and visibility across different screen sizes
  • Resolves issue Date picker clips through navigation bar in mobile #7014 where the date picker was overlapping with other UI elements
  • Minor import order changes made, but these do not affect functionality

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

@charlesBochet charlesBochet self-assigned this Oct 9, 2024
Copy link
Member

@charlesBochet charlesBochet left a comment

Choose a reason for hiding this comment

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

LGTM, thank you @harshrajeevsingh :)

@charlesBochet charlesBochet merged commit 8418729 into twentyhq:main Oct 9, 2024
11 checks passed
Copy link

oss-gg bot commented Oct 9, 2024

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

Copy link

github-actions bot commented Oct 9, 2024

Thanks @harshrajeevsingh for your contribution!
This marks your 1st PR on the repo. You're top 29% of all our contributors 🎉
See contributor page - Share on LinkedIn - Share on Twitter

Contributions

harshit078 pushed a commit to harshit078/twenty that referenced this pull request Oct 14, 2024
Fixes twentyhq#7014

This PR fixes date-picker overflow across all screen sizes. 

**Before:**
![Screenshot from 2024-10-08
23-54-20](https://github.com/user-attachments/assets/80902e3e-0f7e-4642-bda7-11cf7fa8c8af)

**After:**
[Screencast from 2024-10-08
23-41-36.webm](https://github.com/user-attachments/assets/a02c2866-8784-4e19-b914-ac3e97512dce)
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 clips through navigation bar in mobile
2 participants