BioDrop icon indicating copy to clipboard operation
BioDrop copied to clipboard

[BUG] Mobile responsiveness issue: Navbar not covering full screen width

Open Saadat-B opened this issue 3 years ago • 14 comments

Description

The Navbar in the statistics page does not seem to cover the full width of the screen on mobile in the deployed version of LinkFree, however the navbar seems to cover the full width of the screen on mobile when I tried to recreate it locally.

Screenshot of the page on the Deployed version

navbar-bug-deployed

Screenshot of the page on the Local Build

navbar-bug-local

Screenshots

No response

Additional information

No response

Saadat-B avatar Feb 10 '23 05:02 Saadat-B

It's great having you contribute to this project

Welcome to the community :nerd_face:

If you would like to continue contributing to open source and would like to do it with an awesome inclusive community, you should join our Discord chat and our GitHub Organisation - we help and encourage each other to contribute to open source little and often 🤓 . Any questions let us know.

github-actions[bot] avatar Feb 10 '23 05:02 github-actions[bot]

navbar-bug-found I found the bug it is in the table which is displaying the clicks and links. If the url name is too long like in this case this link https://www.linkedin.com/in/saadat-badgujar-ba85b5211/ then the table expands and overflows and causes this issue. I think I can solve this issue by using text-overflow: ellipsis; which will append ... at the end of a long link and shorten it's length. May I be assigned to this Issue?

Saadat-B avatar Feb 10 '23 06:02 Saadat-B

I think the problem is caused by the whitespace-nowrap class here

Changing the class to md:whitespace-nowrap will set the nowrap to only happen on larger screens.

Have you tried clicking on the links on your profile locally to generate the table? This will be difficult to test without a way to reproduce

dan-mba avatar Feb 10 '23 12:02 dan-mba

I think the problem is caused by the whitespace-nowrap class here Changing the class to md:whitespace-nowrap will set the nowrap to only happen on larger screens.

Okay thanks will test this out and will let you know.

Have you tried clicking on the links on your profile locally to generate the table?

Yes I did click on the links and generated the table locally. Before clicking on the links everything was fine.

This will be difficult to test without a way to reproduce

Right, I'm working on the steps to reproduce the bug right now, will give an update soon.

Saadat-B avatar Feb 11 '23 03:02 Saadat-B

I think the problem is caused by the whitespace-nowrap class here Changing the class to md:whitespace-nowrap will set the nowrap to only happen on larger screens.

Okay thanks will test this out and will let you know.

Changing the class to md:whitespace-nowrap has fixed the bug, thanks Dan 👍

I tested all three links to see which one causes the bug and it was the longest link which was causing it and after adding the class as you suggested it wrapped the link and the bug was fixed.

Here's the screenshot of the output

table-bug-fix

Here are the steps to reproduce the bug:

  1. Click a link on your profile
  2. Go to the statistics page under the bar chart to see the generated table with the link
  3. Go to mongodb > linkfree > links
  4. Edit the URL of the link
  5. Increase the length of the URL by adding characters
  6. Observe that the table overflows and causes the bug to occur

Let me know if this is okay then I'll proceed with the pull request

Saadat-B avatar Feb 11 '23 04:02 Saadat-B

Great work, let me know if you need any help with the PR.

dan-mba avatar Feb 11 '23 11:02 dan-mba

Thank you Dan! 👍🏻 Will reach out to you if I need any help 😄

Saadat-B avatar Feb 11 '23 12:02 Saadat-B

I can't reproduce this issue? Here is the result on the smallest screen option...

Screenshot 2023-02-12 at 07 40 38

eddiejaoude avatar Feb 12 '23 00:02 eddiejaoude

@eddiejaoude The overflow is caused by the table below the bar chart.

dan-mba avatar Feb 12 '23 00:02 dan-mba

I can't reproduce this issue? Here is the result on the smallest screen option...

@eddiejaoude I think I missed to include one step in the steps to reproduce. After step 5 which is adding characters to the URL you need to do npm run dev to see the changes occur.

I was able to reproduce the issue just now here's the screenshot of the same, can you please try again and also share the length of the URL if possible?

Screenshot from 2023-02-12 08-43-33

Saadat-B avatar Feb 12 '23 03:02 Saadat-B

@eddiejaoude the issue is caused by long links, I think we just have to add the class max-w-prose and that should solve the problem

suitupstan avatar Feb 12 '23 07:02 suitupstan

What is the status of this issue?

zaid-ahmad avatar Feb 16 '23 16:02 zaid-ahmad

Waiting for Eddie's response

Saadat-B avatar Feb 16 '23 16:02 Saadat-B

Hey @Saadat-B I solved this issue regarding the nav-bar for the Documentation page earlier. Please look my PR I guess it would help you.

Old PR

SyedImam1998 avatar Feb 25 '23 15:02 SyedImam1998