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

Fixing the layout shift that happens in the home page and chapterId page #2130

Open
wants to merge 3 commits into
base: testing
Choose a base branch
from

Conversation

0XYoussefX0
Copy link

Summary

fixed the layout shift that happens when you open the language dropdown, and when you open any of the drawers available on the navbar. the first one is caused by a library used by radix ui under the hood called: react-remove-scroll, and the second one is caused by the usePreventBodyScrolling hook.

Here is the Before and After

Copy link

vercel bot commented Apr 2, 2024

@0XYoussefX0 is attempting to deploy a commit to the Quran Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Apr 2, 2024

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

Name Status Preview Comments Updated (UTC)
quran-com ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2024 1:12pm

@0XYoussefX0 0XYoussefX0 reopened this May 21, 2024
@0XYoussefX0
Copy link
Author

@osamasayed @AhmedCodeGuy please can you review this PR ?
it builds perfectly fine and solves a layout shift issue that will improve the UX for users visiting from a computer.

Copy link
Collaborator

@AhmedCodeGuy AhmedCodeGuy left a comment

Choose a reason for hiding this comment

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

LGTM! JAK <3

@osamasayed osamasayed changed the base branch from master to testing May 23, 2024 13:03
@0XYoussefX0
Copy link
Author

@AhmedCodeGuy Done 👍

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.

2 participants