Repository navigation
fix(frontend/mobile): bottom-sheet modal at <=480px + vw cap on .modal-confirm - #1497
Conversation
…l-confirm (closes #985)
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 7 seconds Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the 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 configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
#985) The <=480px bottom-sheet block lived in components.css, which index.css imports before modals.css and responsive.css. With equal selector specificity, the later-imported responsive.css 768px rule (.modal-content{width:95%}) always won, so only .modal-confirm actually flipped to a bottom sheet; every real modal (#user-modal, #purchase-modal, #account-modal, #plan-modal, #override-modal, login, profile) stayed centered. Move the block into responsive.css, placed after the existing 768px block so source order lets it win. Strengthen the regression test to check the rule lives in responsive.css (not components.css) and that it appears after the 768px block, instead of only string-matching components.css.
Adversarial review finding (HIGH) and fixAn adversarial Opus review flagged that the new
Fix: moved the Cross-PR interaction with #1499: this PR's Gates run locally: |
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
@coderabbitai full review |
✅ Action performedFull review finished. Your included review limit is currently reached under our Fair Usage Limits Policy. Your recent PR review activity is in the 95th percentile or higher among CodeRabbit users, so adaptive limits apply. This review may still proceed through usage-based billing if eligible. Your next included review will be available in 1 minute. |
|
@coderabbitai full review |
✅ Action performedFull review finished. Your included review limit is currently reached under our Fair Usage Limits Policy. Your recent PR review activity is in the 95th percentile or higher among CodeRabbit users, so adaptive limits apply. This review may still proceed through usage-based billing if eligible. Your next included review will be available in 10 seconds. |
Summary
.modal-confirmnow caps atmin(480px, calc(100vw - 2rem))instead of a flat 480px, so it never overflows narrow viewports.<=480px,.modal/.modal-confirm-backdropand.modal-content/.modal-confirmswitch to a bottom-sheet layout (flush to the bottom edge, full width, top corners rounded)..modal-confirm-closenow has a 44x44px minimum tap target (related to mobile: touch targets below 44pt on .btn-small, .toggle-password, .modal-confirm-close #983).Closes #985.
Test plan
npx jest src/__tests__/css.test.ts- added 3 assertions (vw cap, 44px tap target, bottom-sheet media query); confirmed they fail on pre-fix CSS and pass post-fix.npm test(full suite) - no new failures; 8 pre-existing currency-formatting failures inapproval-details.test.tsreproduce identically on unmodifiedmain, unrelated to this change.