twenty icon indicating copy to clipboard operation
twenty copied to clipboard

Date picker clips through navigation bar in mobile

Open harshit078 opened this issue 1 year ago • 12 comments

Bug Description

  • Go to people in companies/people, Choose any Last update/Creation date and scroll to end of the page.
  • this only happens when scrolled to either the end of page or with respect to the section

Current Behaviour

Screenshot 2024-09-13 at 12 59 50 AM Screenshot 2024-09-13 at 1 00 38 AM

Expected behavior

It should automatically reposition it's orientation to top just like Phone number field. Screenshot 2024-09-13 at 1 01 55 AM

harshit078 avatar Sep 12 '24 19:09 harshit078

Hi, Can I contribute to this?

sephialaureenciaa avatar Sep 17 '24 15:09 sephialaureenciaa

Hey @Bonapara and @harshit078 can I work on this.

I have already done some changes to the UI as shown in video for both full screen and mobile screen.

Full Screen

https://github.com/user-attachments/assets/996729d9-3231-426c-a0ea-5b1ea26b726a

Mobile Screen

https://github.com/user-attachments/assets/5dcd775b-2656-409f-8dd9-2bcc6ea87c1e

Please tell me if any changes are needed.

HKS07 avatar Sep 20 '24 17:09 HKS07

Thanks @HKS07. Is the calendar still cropped on mobile? At what point does it start getting cropped?

Bonapara avatar Sep 23 '24 09:09 Bonapara

It is starting cropped around 420 px [width].

image

Shouldn't there be media query used to make it compatible for small size devices? If yes, then what width should I target?

HKS07 avatar Sep 23 '24 16:09 HKS07

I think it should work up to 360px @HKS07. We should aim for the same "desired behavior" as in this issue: https://github.com/twentyhq/twenty/issues/7216

I also noticed an overflow issue with the navbar in your screenshot, @harshit078:

CleanShot 2024-09-23 at 18 45 46

Bonapara avatar Sep 23 '24 16:09 Bonapara

@Bonapara, you are correct ! It overflows through the navigation bar if the user scrolled down and it will not reposition itself.

https://github.com/user-attachments/assets/96073cc8-0e00-4e83-9eb2-b8eb37a6b6b3

harshit078 avatar Sep 24 '24 05:09 harshit078

/oss.gg 150

Bonapara avatar Oct 01 '24 19:10 Bonapara

Thanks for opening an issue! It's live on oss.gg!

oss-gg[bot] avatar Oct 01 '24 19:10 oss-gg[bot]

You already have an open issue assigned to you here. Once that's closed or unassigned, only then we recommend you to take up more.

oss-gg[bot] avatar Oct 02 '24 21:10 oss-gg[bot]

/assign

harshrajeevsingh avatar Oct 02 '24 21:10 harshrajeevsingh

Assigned to @harshrajeevsingh! Please open a draft PR linking this issue within 48h ⚠️ If we can't detect a PR from you linking this issue in 48h, you'll be unassigned automatically 🕹️ Excited to have you ship this 🚀

oss-gg[bot] avatar Oct 02 '24 21:10 oss-gg[bot]

Hey, @Bonapara. I worked on this issue today and found that the datePicker component is overflowing not only on mobile but also on the desktop. The react-datePicker uses floating UI package to auto-position the element based on the viewport. After debugging, I found that floating UI is not working for the datePicker component because it's wrapped inside a parent div. Therefore, we need to remove the parent div to make this work. Down below I attached some screenshots to check. Lemme know what approach should I take.

Before: Screenshot from 2024-10-04 01-28-18

After: Screenshot from 2024-10-04 01-30-40 Screenshot from 2024-10-04 01-31-47

harshrajeevsingh avatar Oct 03 '24 20:10 harshrajeevsingh

@lucasbordeau will have a better idea on this ;)

Bonapara avatar Oct 04 '24 07:10 Bonapara

Assigned to @manav-gopal! Please open a draft PR linking this issue within 48h ⚠️ If we can't detect a PR from you linking this issue in 48h, you'll be unassigned automatically 🕹️ Excited to have you ship this 🚀

oss-gg[bot] avatar Oct 04 '24 12:10 oss-gg[bot]

/assign

harshrajeevsingh avatar Oct 08 '24 17:10 harshrajeevsingh

This issue is already assigned to another person. Please find more issues here.

oss-gg[bot] avatar Oct 08 '24 17:10 oss-gg[bot]

Hey @manav-gopal Are you still working on this? I got it fixed. If you are not working unassign yourself. So, I can raise a PR.

harshrajeevsingh avatar Oct 08 '24 17:10 harshrajeevsingh

Issue unassigned.

oss-gg[bot] avatar Oct 08 '24 18:10 oss-gg[bot]

/assign

harshrajeevsingh avatar Oct 08 '24 18:10 harshrajeevsingh

Assigned to @harshrajeevsingh! Please open a draft PR linking this issue within 48h ⚠️ If we can't detect a PR from you linking this issue in 48h, you'll be unassigned automatically 🕹️ Excited to have you ship this 🚀

oss-gg[bot] avatar Oct 08 '24 18:10 oss-gg[bot]

@harshrajeevsingh, Just a little reminder: Please open a draft PR linking this issue within 12 hours. If we can't detect a PR in 12h, you will be unassigned automatically.

oss-gg[bot] avatar Oct 10 '24 06:10 oss-gg[bot]

@harshrajeevsingh, Just a little reminder: Please open a draft PR linking this issue within 12 hours. If we can't detect a PR in 12h, you will be unassigned automatically.

oss-gg[bot] avatar Oct 12 '24 06:10 oss-gg[bot]

@harshrajeevsingh, Just a little reminder: Please open a draft PR linking this issue within 12 hours. If we can't detect a PR in 12h, you will be unassigned automatically.

oss-gg[bot] avatar Oct 14 '24 06:10 oss-gg[bot]

/unassign

charlesBochet avatar Oct 14 '24 06:10 charlesBochet

Issue unassigned.

oss-gg[bot] avatar Oct 14 '24 06:10 oss-gg[bot]