fix(mobile): prevent search-focus zoom + show results above the fold#40
Merged
dineshbyte merged 1 commit intoJun 24, 2026
Merged
Conversation
Two mobile search issues on the hub: 1. The search input was font-size .86rem (~14.6px). Any input under 16px makes iOS Safari auto-zoom on focus, and the zoomed page then pans left/right. Set the input to 16px on phones (<=640px) so focus no longer zooms. 2. run() hid the card grid + filter chips during a search but left the .hero banner and .whatis intro band on screen, so results were pushed below the top banner and looked broken on mobile. Hide .hero and .whatis during an active search (restore them when the query is cleared) so results render directly under the search bar.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two mobile search issues on the hub:
The search input was font-size .86rem (~14.6px). Any input under 16px makes iOS Safari auto-zoom on focus, and the zoomed page then pans left/right. Set the input to 16px on phones (<=640px) so focus no longer zooms.
run() hid the card grid + filter chips during a search but left the .hero banner and .whatis intro band on screen, so results were pushed below the top banner and looked broken on mobile. Hide .hero and .whatis during an active search (restore them when the query is cleared) so results render directly under the search bar.
What & why
Checklist
node scripts/check-broken-links.cjspassesnode scripts/validate-content.cjspassesdocs/sitemap.xml