Skip to content

TT-7623 fix: keep three-digit references on one line on mobile - #534

Draft
nabalone wants to merge 1 commit into
developfrom
TT-7623_mobile-three-digit-reference-wrap
Draft

TT-7623 fix: keep three-digit references on one line on mobile#534
nabalone wants to merge 1 commit into
developfrom
TT-7623_mobile-three-digit-reference-wrap

Conversation

@nabalone

Copy link
Copy Markdown
Collaborator

Summary

Fixes TT-7623: on mobile, references with three-digit chapter/verse numbers wrapped onto two lines.

  • Mark Verses table — references like 119:10b-11a and 119:13-120:5e wrapped in the Reference column. The Start–Stop column was pinned to a fixed 42% width; it's now shrink-to-content, and the reference text is nowrap, so the reference keeps the freed width on a single line.
  • Edit Reference dialog — the title Edit Reference for 124.7-425.2 broke mid-number. The title is now 1.1rem and the numeric range sits in a nowrap span, so the whole title fits on one line on a phone.

Both changes are scoped to the mobile Mark Verses components only.

Test plan

  • Rendered the real MarkVersesTable and EditReferenceDropdown with three-digit Psalm 119 data at a 375px mobile viewport: every reference renders on one line with no horizontal overflow, and the dialog title fits one line with comfortable margin (~241–261px used of 311px available, even for the longest limit strings).
  • npm run typecheck — passes
  • npx jest EditReferenceDropdown PassageDetailMarkVerses — 25 passed
  • ESLint + Prettier — clean

🤖 Generated with Claude Code

On the mobile Mark Verses screen, references with three-digit chapter
or verse numbers (e.g. "119:10b-11a", "119:13-120:5e") wrapped onto two
lines in the table, and the Edit Reference dialog title broke mid-number.

Shrink the table's Start-Stop column to its own content (was a fixed
42%) and set the reference text to nowrap so it keeps the freed width on
one line. In the dialog, drop the title to 1.1rem and keep the numeric
range in a nowrap span so the whole title fits one line on a phone.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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