create-t3-app icon indicating copy to clipboard operation
create-t3-app copied to clipboard

fix: Mobile pop out menu hidden incorrectly

Open KarthikRaju391 opened this issue 2 years ago • 19 comments

Closes #777

✅ Checklist

  • [x] I have followed every step in the contributing guide (updated 2022-10-06).
  • [x] The PR title follows the convention we established conventional-commit
  • [x] I performed a functional test on my final commit

Changelog

Changed the max-width property of the media-query from 767px to 768px


Screenshots

image image

💯

KarthikRaju391 avatar Nov 18 '22 08:11 KarthikRaju391

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
create-t3-app ✅ Ready (Inspect) Visit Preview Nov 22, 2022 at 9:54PM (UTC)

vercel[bot] avatar Nov 18 '22 08:11 vercel[bot]

Please remove the changeset, we only need it for CLI changes

nexxeln avatar Nov 18 '22 09:11 nexxeln

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 83
🟢 Accessibility 100
🟢 Best practices 100
🟠 SEO 86
🟠 PWA 54

Lighthouse ran on https://create-t3-app-git-fork-karthikraju391-fix-bug-777-t3-oss.vercel.app/

github-actions[bot] avatar Nov 18 '22 09:11 github-actions[bot]

So, I have to remove the changeset and push it again?

KarthikRaju391 avatar Nov 18 '22 10:11 KarthikRaju391

So, I have to remove the changeset and push it again?

Yes, delete the file and push again.

AyanavaKarmakar avatar Nov 18 '22 11:11 AyanavaKarmakar

⚠️ No Changeset found

Latest commit: f849480d64066fef680e4dcde27d3c428ace6b0a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar Nov 18 '22 12:11 changeset-bot[bot]

Is this ok @AyanavaKarmakar?

KarthikRaju391 avatar Nov 18 '22 14:11 KarthikRaju391

I'll look into it @juliusmarminge

KarthikRaju391 avatar Nov 19 '22 03:11 KarthikRaju391

The reason for the 767 value is that the breakpoint is at 768, so we want this behaviour until 1 pixel before that.

Was this PR in response to a specific issue in the UI?

c-ehrlich avatar Nov 19 '22 10:11 c-ehrlich

The reason for the 767 value is that the breakpoint is at 768, so we want this behaviour until 1 pixel before that.

Was this PR in response to a specific issue in the UI?

#777 but that issue seems very flaky

juliusmarminge avatar Nov 19 '22 10:11 juliusmarminge

The issue was that at 767 px the popout wasn't being shown. It was being shown at 766px and 768px but not at 767px

KarthikRaju391 avatar Nov 19 '22 10:11 KarthikRaju391

The reason for the 767 value is that the breakpoint is at 768, so we want this behaviour until 1 pixel before that.

Looks like the menu doesn't pop up only @ 767 x 767 dimensions. What if we set the max-width to 767.5 instead of 767 / 768?

AyanavaKarmakar avatar Nov 19 '22 11:11 AyanavaKarmakar

It is actually working correctly when max-width is 767.5px.

KarthikRaju391 avatar Nov 19 '22 11:11 KarthikRaju391

https://user-images.githubusercontent.com/67912316/202848877-37a97b7b-add1-4195-ba38-43837167d2d8.mp4

KarthikRaju391 avatar Nov 19 '22 11:11 KarthikRaju391

Create.T3.App.-.Brave.2022-11-19.17-08-11.mp4

what you are showing here seems like the correct behaviour - the menu exists until 767 px, and doesn't exist at 768+ px because then the "Docs" etc items appear in the navbar instead

c-ehrlich avatar Nov 19 '22 17:11 c-ehrlich

It is actually working correctly when max-width is 767.5px.

Can you please push the changes, so that we can get a live preview?

AyanavaKarmakar avatar Nov 19 '22 20:11 AyanavaKarmakar

I still can't reproduce the original issue though, it works as expected with breakpoint going from 767 to 768 for me on both Safari, Chrome and Firefox.

juliusmarminge avatar Nov 19 '22 22:11 juliusmarminge

I still can't reproduce the original issue though, it works as expected with breakpoint going from 767 to 768 for me on both Safari, Chrome and Firefox.

I can reproduce the issue on brave on windows

nexxeln avatar Nov 20 '22 04:11 nexxeln

I'm out currently, I'll push the changes in an hour.

KarthikRaju391 avatar Nov 20 '22 06:11 KarthikRaju391

Nothing broke on my end either, still good on Safari, Chrome and Firefox for me

juliusmarminge avatar Nov 22 '22 21:11 juliusmarminge