Skip to content

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

Open
nabalone wants to merge 3 commits into
developfrom
TT-7623_mobile-three-digit-reference-wrap
Open

nabalone wants to merge 3 commits into
developfrom
TT-7623_mobile-three-digit-reference-wrap

Conversation

@nabalone

@nabalone nabalone commented Aug 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Fixes TT-7623: on mobile, three-digit chapter/verse references wrapped onto two lines in the Mark Verses table and the Edit Reference dialog.

  • Keep the Mark Verses "Start → Stop" header cell on one line (whiteSpace: nowrap, width: 1%) so three-digit references no longer wrap.
  • Give the mobile Mark Verses column the full pane width (width: 100% / minWidth: 0) instead of constraining it to the player width, so the table and waveform use the leftover space to the right. The full pane width is passed into PassageDetailMarkVerses (dropped the -40 inset) and the player follows via maxWidth: 100%.

Test plan

  • On a mobile-width viewport, open a passage with three-digit references in Mark Verses and confirm the reference and the Start/Stop header stay on one line.
  • Confirm the Edit Reference dialog shows references on one line.
  • Confirm the table and waveform fill the pane width with no horizontal overflow.

🤖 Generated with Claude Code

@nabalone
nabalone force-pushed the TT-7623_mobile-three-digit-reference-wrap branch from f5870a3 to 0a37af8 Compare October 8, 2026 18:30
nabalone and others added 2 commits October 9, 2026 09:30
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>
…ile)

Give the mobile Mark Verses column the full pane width (width: 100% /
minWidth: 0) instead of constraining it to the player width, so the table
and waveform can use the leftover space to the right. Pass the full pane
width into PassageDetailMarkVerses (drop the -40 inset and switch to
paneWidth) and let the player follow via maxWidth 100%.

Keep the "Start --> Stop" header cell on one line (whiteSpace: nowrap,
width: 1%) so three-digit references no longer wrap.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@nabalone
nabalone force-pushed the TT-7623_mobile-three-digit-reference-wrap branch from 0a37af8 to 24a81bf Compare October 9, 2026 13:30
@nabalone
nabalone requested a balanced review from Copilot October 9, 2026 13:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The changes are purely visual CSS/layout tweaks affecting both the mobile and desktop Mark Verses rendering paths, and their correctness can only be confirmed by manual visual inspection across viewport sizes.

0 open findings

What changed in this PR

This PR fixes TT-7623: on mobile-width viewports, three-digit chapter/verse references (e.g. 119:10b-11a) and the "Start → Stop" header were wrapping onto two lines in the Mark Verses table and the Edit Reference dialog. It is a CSS/layout-only change within the PassageDetail Mark Verses feature; no application logic is altered. Because the Mark Verses component (mobile/MarkVerses/…) is reused by the desktop grid, the width change also affects the desktop rendering path.

Changes:

  • Keep the Mark Verses limits column (header + body) and the reference text on a single line via whiteSpace: nowrap and a shrink-to-content width: '1%'.
  • Let the Mark Verses column fill the full pane (width: '100%', minWidth: 0) by passing paneWidth instead of the fit-reduced width, with the player following via its existing maxWidth: 100%.
  • Keep the Edit Reference dialog title's time-limit range together (nowrap) and slightly reduce its font size so it fits one line on a phone.
File Description
web/​src/​routes/​PassageDetail.tsx Mobile step now passes full paneWidth to PassageDetailMarkVerses (dropped the -40 inset).
web/​src/​components/​PassageDetail/​PassageDetailGrids.tsx Desktop grid passes paneWidth (was playerPaneWidth) to the Mark Verses column.
web/​src/​components/​PassageDetail/​mobile/​MarkVerses/​PassageDetailMarkVerses.tsx Container fills the pane (width: '100%', minWidth: 0, overflow: hidden) instead of being constrained to the player width.
web/​src/​components/​PassageDetail/​mobile/​MarkVerses/​MarkVersesTable.tsx Limits column shrinks to content and stays nowrap; reference text set to nowrap.
web/​src/​components/​PassageDetail/​mobile/​MarkVerses/​EditReferenceDropdown.tsx Dialog title keeps the limit range together (nowrap span) and uses a smaller font size.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@nabalone
nabalone marked this pull request as ready for review October 9, 2026 13:41

@nabalone nabalone left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image.png
image.png

@nabalone
nabalone marked this pull request as draft October 9, 2026 13:45
On small screens (isMobileWidth) the Mark Verses table's Edit Reference
button now renders just the pencil icon with no text and shrinks to hug
it (drops MUI's 64px min-width and trims padding). Non-mobile widths keep
the labeled icon + "Edit" button. Icon and optional label are composed as
Stack children so the default Typography wrapper is bypassed, avoiding an
invalid block-in-paragraph nesting.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

@nabalone nabalone left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually now Greg, Jiho and I decided to use just the pencil icon on phone widths because the word "edit" may be longer in other languages. See that even with an unrealistically full row it does not overflow
image.png

@nabalone
nabalone marked this pull request as ready for review October 9, 2026 21:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The changes are purely visual/layout adjustments across both mobile and desktop Mark Verses views whose correctness depends on rendered output that only manual visual review can confirm.

1 open finding

🧠 Review effort: Balanced

Comment on lines +357 to +360
// Children are custom markup (icon + optional label), so
// skip the Button's default Typography wrapper — a block
// Stack inside a <p> would be invalid; we wrap the label
// in its own Typography below to keep its styling.
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.

2 participants