Skip to content

fix: make modal position fixed and scrollable at all breakpoints#6

Open
jaredgoldman wants to merge 1 commit intomainfrom
worktree-agent-ac8b8a627a69596bd
Open

fix: make modal position fixed and scrollable at all breakpoints#6
jaredgoldman wants to merge 1 commit intomainfrom
worktree-agent-ac8b8a627a69596bd

Conversation

@jaredgoldman
Copy link
Copy Markdown
Owner

Summary

  • Change .modal position from absolute to fixed so it correctly overlays the viewport when html/body are position: fixed
  • Add max-height: 100dvh and overflow-y: auto at the base .modal level so content scrolls on desktop/tablet as well as mobile
  • Add overscroll-behavior: contain to prevent scroll events from bubbling out to the card navigation when the modal is scrolled
  • Remove the now-redundant overflow-y: auto from the @media (max-width: 600px) block

Test plan

  • Open a project card to trigger the modal
  • Confirm the modal overlays the full viewport correctly
  • Scroll within the modal on desktop — content should scroll without triggering card navigation
  • Scroll within the modal on mobile (≤ 600px) — same behaviour
  • Close the modal and verify card navigation still works

🤖 Generated with Claude Code

- Change position from absolute to fixed so the modal correctly overlays
  the viewport when html/body are position:fixed
- Add max-height: 100dvh and overflow-y: auto at the base level so
  content scrolls at desktop/tablet sizes, not only on mobile
- Add overscroll-behavior: contain to prevent scroll events from
  bubbling out to the card navigation
- Remove now-redundant overflow-y: auto from the mobile media query

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented May 5, 2026

Deploy Preview for jared-goldman-portfolio ready!

Name Link
🔨 Latest commit d24da7b
🔍 Latest deploy log https://app.netlify.com/projects/jared-goldman-portfolio/deploys/69f97d21c42ec30008b35e49
😎 Deploy Preview https://deploy-preview-6--jared-goldman-portfolio.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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