-
Notifications
You must be signed in to change notification settings - Fork 7.8k
fix: ui elements shifting to the right #5758
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
Conversation
Hi @phanendraguptha! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
Size Changes📦 Next.js Bundle AnalysisThis analysis was generated by the next.js bundle analysis action 🤖 This PR introduced no changes to the javascript bundle 🙌 |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
Is there any more natural way to do this? Why does the scrollbar disappear underneath the model? Can we fix that instead? |
If the scrollbar appears, it means that the main content below the modal can be scrolled, which is not desirable since we disable scrolling when the popup modal opens. This causes the scrollbar to disappear, similar to using |
On further investigation, I found that |
@gaearon please let me know your thoughts on this. |
Hi, The issue causing layout shifts due to the scrollbar disappearing has been fixed in the latest version of the Algolia DocSearch package (fix: #2378). To resolve the problem in this repository, please consider bumping the DocSearch version to 3.8.0 (or the latest available). This will ensure the layout remains stable when the search bar modal is opened. Thank you! |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
The main layout elements are shifting to the right when the search bar is open
before:
Untitled1.mp4
after:
Untitled2.mp4