Skip to content

[codex] Fix header menu overflow#335

Merged
redreceipt merged 1 commit into
mainfrom
codex/fix-header-menu-overflow
May 14, 2026
Merged

[codex] Fix header menu overflow#335
redreceipt merged 1 commit into
mainfrom
codex/fix-header-menu-overflow

Conversation

@redreceipt
Copy link
Copy Markdown
Member

Summary

  • Strengthen the site-menu dropdown selector so it overrides Pico's default left-aligned dropdown positioning.
  • Add a viewport max width to keep the header menu inside the page.
  • Add regression coverage for the local-pages menu override.

Root Cause

The hamburger menu was placed near the right edge of the header, but Pico's default dropdown rule could still apply left: 0, causing the menu to expand off the right side of the viewport.

Validation

  • source venv/bin/activate && ruff check .
  • source venv/bin/activate && python -m unittest discover -s tests -p 'test_*.py'
  • Playwright rendered check at 1280px and 390px widths confirmed the opened dropdown stayed inside the viewport.

@redreceipt redreceipt marked this pull request as ready for review May 14, 2026 14:59
@redreceipt redreceipt temporarily deployed to bug-board-codex-fix-hea-cb2fu4 May 14, 2026 15:00 Inactive
@redreceipt redreceipt merged commit b0146cb into main May 14, 2026
8 checks passed
@redreceipt redreceipt deleted the codex/fix-header-menu-overflow branch May 14, 2026 15:02
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.

1 participant