Skip to content

fix(screening): at large text on a phone, a criterion's Must-have and Nice to have stay on the screen - #1682

Merged
sickerine merged 1 commit into
devfrom
fix/screening-criteria-large-text
Dec 1, 2026
Merged

sickerine merged 1 commit into
devfrom
fix/screening-criteria-large-text

Conversation

@sickerine

Copy link
Copy Markdown
Collaborator

Found by the daily QA of 1 December, checking #1590.

At 200% text on a phone, a criterion's Must-have / Nice to have switch on the screening form didn't wrap: at 390px it ran to x=515 and its Delete to x=595, off the screen, and the page doesn't scroll sideways, so Nice to have and Delete couldn't be reached.

The switch takes Segmented's wraps (as #1528 did for the report settings): on a phone it stays inside its row and its labels wrap between words. The switch and Delete share a line where they fit; otherwise Delete goes under it.

Measured on /screening/new as the Verify Agent with one criterion, dev against a production build of this branch:

Size dev: switch, Delete right edge branch
360x740 and 390x844, 100% 78 to 260, 300 same
360x740, 200% 150 to 515, 595 (row ends at 258) 154 to 262, 218 (row ends at 262)
390x844, 200% 150 to 515, 595 (row ends at 288) 154 to 292, 218 (row ends at 292)
1440x900, 100% and 200% unchanged same

Checks: tsc --noEmit, check:ui-rules, npm run verify -- shift /screening/new passes in Chromium and Firefox, screenshots at 390 and 200% before and after.

Not in this PR: at 200% on a phone the criterion's column is about 138px wide, so its fields are cramped; that needs a layout decision, like the author entry's.

… Nice to have stay on the screen

At 200% text on a 390px phone, a criterion's Must-have / Nice to have switch ran to
x=515 and its Delete to x=595, off the screen with no way to scroll to them. The switch
now wraps inside its row (Segmented's wraps, as #1528 did elsewhere) and Delete goes
under it when they don't fit side by side. Normal text and desktop are unchanged.
@coderabbitai

coderabbitai Bot commented Dec 1, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d9a6f6d7-5169-4cf1-ba3c-cd17c7ec4756
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-01T09:28:36.228909Z 8ae0869 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@sickerine
sickerine merged commit a1f82bb into dev Dec 1, 2026
7 checks passed
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