Skip to content

Fix mobile search results panel alignment while scrolling - #312

Open
bunny953 wants to merge 1 commit into
OpenScienceLabs:mainfrom
bunny953:fix-mobile-search-panel
Open

bunny953 wants to merge 1 commit into
OpenScienceLabs:mainfrom
bunny953:fix-mobile-search-panel

Conversation

@bunny953

Copy link
Copy Markdown

Description

Fixes #309

The mobile search results panel could become detached from the search bar when the mobile navigation container was scrolled.

This change:

  • Positions the search results panel relative to the viewport.
  • Keeps the panel aligned with the search input during scrolling.
  • Repositions the panel when the mobile offcanvas container scrolls.
  • Prevents the panel from overflowing the viewport on smaller screens.

Testing

  • node --check theme/js/osl-search.js
  • git diff --check
  • Verified the site runs successfully with makim pages.preview.

@netlify

netlify Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for opensciencelabsweb failed.

Name Link
🔨 Latest commit 9168f31
🔍 Latest deploy log https://app.netlify.com/projects/opensciencelabsweb/deploys/6ab7fb282718cb0008bf6516

@bunny953

Copy link
Copy Markdown
Author

Hi! The PR's CI run currently shows the linkcheckmd hook failing, although I reproduced the same check locally with:

pre-commit run linkcheckmd --all-files

and it passed successfully.

The other relevant checks (prettier, ruff-format, and ruff-linter) also passed in the CI run. Please let me know if you'd like me to investigate anything further.

This branch has not been deployed

No deployments
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.

Mobile search results panel detaches from search bar when scrolling offcanvas menu

1 participant