fix: replace 100vw with 100% in contact form mobile media query#5
Open
jaredgoldman wants to merge 1 commit intomainfrom
Open
fix: replace 100vw with 100% in contact form mobile media query#5jaredgoldman wants to merge 1 commit intomainfrom
jaredgoldman wants to merge 1 commit intomainfrom
Conversation
Using 100vw includes scrollbar width, causing horizontal overflow on mobile. Switching to 100% respects the parent's available space without the overflow issue, consistent with how the base styles already work. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
✅ Deploy Preview for jared-goldman-portfolio ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
Summary
@media only screen and (max-width: 480px)block,.form-containerand.contact-formwere usingwidth: 100vw; max-width: 100vw100vwincludes the scrollbar width on devices that show scrollbars, causing horizontal overflow and an unwanted horizontal scrollbar on mobilewidth: 100%; max-width: 100%; box-sizing: border-boxwhich respects the parent's available space correctlyTest plan
pnpm run csscompiles without errors (only pre-existing@importdeprecation warnings)🤖 Generated with Claude Code