Skip to content

Fix the contribution type dropdown still being cut off on mobile#906

Merged
JoaquinBN merged 2 commits into
devfrom
JoaquinBN/fix-mobile-dropdown-overflow
Jul 6, 2026
Merged

Fix the contribution type dropdown still being cut off on mobile#906
JoaquinBN merged 2 commits into
devfrom
JoaquinBN/fix-mobile-dropdown-overflow

Conversation

@JoaquinBN

Copy link
Copy Markdown
Collaborator

Summary

PR #904 fixed the mobile clipping of the Submit Contribution type dropdown at the form-shell level, but the dropdown was still being cut off at the bottom edge of the page container. The route wrapper (.submit-contribution-route) had the same overflow-x: hidden rule in its mobile media query, one ancestor above the shell that #904 fixed.

Per the CSS spec, overflow-x: hidden forces the computed overflow-y to auto, silently turning the wrapper into a scroll container that clips absolutely-positioned descendants. The dropdown escaped the fixed shell only to be clipped by the route wrapper instead.

Change

  • frontend/src/routes/SubmitContribution.svelte: the mobile .submit-contribution-route rule now uses overflow-x: clip instead of overflow-x: hidden. clip cuts horizontal bleed without capturing vertical overflow, so the dropdown now properly overlaps the page content below it regardless of its parent container's height.

This is the same fix pattern documented in frontend/CLAUDE.md under Common Issues & Solutions. After this change, no ancestor between the dropdown and the page scroller clips vertical overflow.

Testing

  • Verified the full ancestor chain (main → route wrapper → form shell → panel → dropdown): the page scroller is now the only scroll container above the dropdown.

JoaquinBN added 2 commits July 6, 2026 21:38
The earlier mobile fix let the type dropdown escape the form shell, but
the page wrapper around the submit form still became a scroll container
on small screens, so the menu was cut at the wrapper's bottom edge
before a type was picked. The wrapper now clips only horizontal bleed,
letting the dropdown overlap the content below it in full.

## Implementation Notes
- frontend/src/routes/SubmitContribution.svelte: mobile .submit-contribution-route rule changed from overflow-x: hidden to overflow-x: clip (hidden forces computed overflow-y to auto, creating a scroll container that clipped the absolutely-positioned type dropdown at the route wrapper's bottom edge — same gotcha as the shell fix in 8f2a1dc, one ancestor up)
@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@JoaquinBN, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 14 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: b0516239-daee-42e6-9ef4-cd76e701b0db

📥 Commits

Reviewing files that changed from the base of the PR and between ae4f511 and eec8c7f.

📒 Files selected for processing (2)
  • CHANGELOG.md
  • frontend/src/routes/SubmitContribution.svelte
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch JoaquinBN/fix-mobile-dropdown-overflow

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@JoaquinBN JoaquinBN merged commit bfdaacf into dev Jul 6, 2026
2 of 3 checks passed
@JoaquinBN JoaquinBN deleted the JoaquinBN/fix-mobile-dropdown-overflow branch July 6, 2026 19:47
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