Fix Algolia search button alignment#1406
Conversation
|
@Abhash-Chakraborty is attempting to deploy a commit to the recode Team on Vercel. A member of the Team first needs to authorize it. |
|
Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. The estimated time for response is 5–8 hrs. In the meantime, please provide all necessary screenshots and make sure you run - npm build run , command and provide a screenshot, a video recording, or an image of the update you made below, which helps speed up the review and assignment. If you have questions, reach out to LinkedIn. Your contributions are highly appreciated!😊 Note: I maintain the repo issue every day twice at 8:00 AM IST and 9:00 PM IST. If your PR goes stale for more than one day, you can tag and comment on this same issue by tagging @sanjay-kv. We are here to help you on this journey of open source. Consistent 20 contributions are eligible for sponsorship 💰 🎁 check our list of amazing people we sponsored so far: GitHub Sponsorship. ✨ 📚Your perks for contribution to this community 👇🏻
If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊 |
|
✅ Synchronized metadata from Issue #1405:
|
There was a problem hiding this comment.
Pull request overview
This PR addresses a UI alignment issue with the Algolia SiteSearch button in the Docusaurus navbar and reduces noisy/fragile dev-time behavior by disabling certain third-party runtime integrations during local development.
Changes:
- Adds targeted navbar CSS to keep the Algolia SiteSearch icon aligned within the search button while preserving click/focus behavior.
- Disables Algolia SiteSearch insights for the navbar integration and adds optional cleanup via
SiteSearch.destroyon unmount. - Skips Pinterest tracking on localhost and disables
@docusaurus/plugin-ideal-imagein development.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| static/pinterest-init.js | Skips loading Pinterest tracking on localhost to avoid local dev overlays/runtime issues. |
| src/css/custom.css | Adds scoped navbar CSS to fix Algolia SiteSearch button/icon alignment. |
| src/components/AlgoliaSiteSearch/index.tsx | Disables insights and attempts cleanup on unmount to reduce dev-time fetch/overlay issues. |
| docusaurus.config.ts | Disables Ideal Image plugin in dev to avoid development-time runtime overlays. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
Closes #1405
Testing