Skip to content

Fix Algolia search button alignment#1407

Merged
sanjay-kv merged 1 commit intorecodehive:mainfrom
Abhash-Chakraborty:Abhash/fix-algolia-search-1405
May 5, 2026
Merged

Fix Algolia search button alignment#1407
sanjay-kv merged 1 commit intorecodehive:mainfrom
Abhash-Chakraborty:Abhash/fix-algolia-search-1405

Conversation

@Abhash-Chakraborty
Copy link
Copy Markdown
Member

Summary

  • Use explicit grid layout for the Algolia navbar search button so the icon, text, and shortcut stay aligned.
  • Keep clicking the search button opening and focusing the search modal.
  • Skip local-only tracking/runtime overlays that caused Failed to fetch during development.

Closes #1405

Testing

  • npm run build

Copilot AI review requested due to automatic review settings May 5, 2026 07:44
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 5, 2026

@Abhash-Chakraborty is attempting to deploy a commit to the recode Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

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 👇🏻

  1. Get free Consultation use code recode50 to get free: Mentorship for free.

  2. Get the Ebook for free use code recode at checkout: Data Science cheatsheet for Beginners.

  3. Check out this weekly Newsletter: Sanjay's Newsletter.

If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@github-actions github-actions Bot added in-review The current changes are in review and would need approval and testing before merging level 1 10 points recode this is label for leaderboard labels May 5, 2026
@github-actions github-actions Bot added this to the recode:launch 3.0 milestone May 5, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

✅ Synchronized metadata from Issue #1405:

  • Labels: level 1, recode
  • Milestone: recode:launch 3.0

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

✅ Synchronized metadata from Issue #1405:

  • Labels: level 1, recode
  • Milestone: recode:launch 3.0

@Adez017
Copy link
Copy Markdown
Member

Adez017 commented May 5, 2026

@abhilash can you confirm the responsiveness of the search tab , previously not the whole tab .

@Adez017 Adez017 self-requested a review May 5, 2026 07:47
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to tighten the Docusaurus navbar search experience by aligning the Algolia SiteSearch trigger more predictably, while also reducing some development-time client/runtime noise in the site shell.

Changes:

  • Reworked Algolia navbar button styling to use an explicit grid layout for icon/text/shortcut alignment.
  • Updated the Algolia SiteSearch bootstrap to add cleanup support and disable insights during initialization.
  • Reduced dev-time noise by skipping Pinterest tracking on local hosts and disabling ideal-image in development.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
static/pinterest-init.js Adds a localhost check before loading the Pinterest tracker.
src/css/custom.css Introduces navbar SiteSearch layout overrides for button alignment.
src/components/AlgoliaSiteSearch/index.tsx Adjusts SiteSearch typings/init options and adds cleanup on unmount.
docusaurus.config.ts Disables the ideal-image plugin during development.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread static/pinterest-init.js
Comment on lines +3 to +6
const isLocalhost = ["localhost", "127.0.0.1", "::1"].includes(
window.location.hostname,
);

applicationId,
apiKey,
indexName,
insights: false,
Comment thread src/css/custom.css
Comment on lines +1402 to +1405
.algolia-sitesearch-navbar .sitesearch-button {
position: relative !important;
display: flex !important;
align-items: center !important;
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
recode-website Ready Ready Preview, Comment May 5, 2026 8:39am

@sanjay-kv sanjay-kv merged commit 3723dad into recodehive:main May 5, 2026
6 checks passed
@sanjay-kv
Copy link
Copy Markdown
Member

@sachinggsingh great implementation, much appreciate it, will highlight in our developer newslettter.

@Adez017
Copy link
Copy Markdown
Member

Adez017 commented May 5, 2026

@sachinggsingh great implementation, much appreciate it, will highlight in our developer newslettter.

@sanjay-kv its not @sachinggsingh its @Abhash-Chakraborty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in-review The current changes are in review and would need approval and testing before merging level 1 10 points recode this is label for leaderboard

Projects

Status: Q2 2026 – March-June

Development

Successfully merging this pull request may close these issues.

🐞[Bug]: Missalignment in the Agolia feature

4 participants