Skip to content

Fix mobile sidebar closed state#31

Merged
ootakazuhiko merged 1 commit into
mainfrom
codex/issue168-sidebar-overlap-20260607
Jun 7, 2026
Merged

Fix mobile sidebar closed state#31
ootakazuhiko merged 1 commit into
mainfrom
codex/issue168-sidebar-overlap-20260607

Conversation

@ootakazuhiko

Copy link
Copy Markdown
Collaborator

Summary

  • keep the mobile/tablet sidebar closed state authoritative when main.css later declares the desktop sidebar transform
  • keep the opened mobile drawer above the backdrop and below the fixed header

Verification

  • npm ci
  • npm test
  • git diff --check
  • BUNDLE_PATH=/home/devuser/work/CodeX/booksB/.codex-local/tmp/issue-driven-bundle-path BUNDLE_APP_CONFIG=/home/devuser/work/CodeX/booksB/.codex-local/tmp/issue-driven-bundle-config npm run build
  • node tools/pages-visual-check/run.mjs --registry .codex-local/issue-driven-built-registry.json --output .codex-local/issue168-issue-driven-local-visual --browsers chromium --viewports phone480,tablet,tablet820,laptop1024,desktop --onlyBooks issue-driven-work-book --maxPagesPerBook 2 --concurrency 1 --skipScreenshots --enforceFontSpec
  • direct Playwright z-index probe for / and /chapters/chapter-01/ at 480/768/820/1024/1280 widths

Related: itdojp/it-engineer-knowledge-architecture#168

Copilot AI review requested due to automatic review settings June 7, 2026 07:26
@ootakazuhiko

Copy link
Copy Markdown
Collaborator Author

@copilot review

Copilot AI left a comment

Copy link
Copy Markdown

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 adjusts the mobile/tablet responsive sidebar CSS so the “closed” drawer state isn’t accidentally overridden by later desktop sidebar rules in main.css, and ensures the opened drawer layers correctly between the backdrop overlay and the fixed header.

Changes:

  • Make the mobile/tablet .book-sidebar closed-state transform (translateX(-100%)) authoritative against later desktop rules by using !important.
  • Raise the mobile/tablet .book-sidebar z-index to sit above the overlay (.book-sidebar-overlay) but below the fixed header (.book-header).

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

@ootakazuhiko ootakazuhiko merged commit 196cdfd into main Jun 7, 2026
3 checks passed
@ootakazuhiko ootakazuhiko deleted the codex/issue168-sidebar-overlap-20260607 branch June 7, 2026 07:28
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.

2 participants