Skip to content

Fix /join/ email copy box mid-domain wrap at phone widths - #156

Merged
VatsalSy merged 1 commit into
mainfrom
rayleigh-cloud/join-email-wrap-f740
Oct 26, 2026
Merged

VatsalSy merged 1 commit into
mainfrom
rayleigh-cloud/join-email-wrap-f740

Conversation

@VatsalSy

@VatsalSy VatsalSy commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Description

At phone widths the /join/ contact email copy box broke the address mid-domain (durham.ac.u / k) because .email-text used overflow-wrap: anywhere from the 19 Oct copy-box restyle. A copyable value should read as one unit. This change lets the mailto/copy icons wrap below the address on narrow viewports and soft-breaks only after @ via <wbr> with overflow-wrap: break-word. Desktop layout stays side-by-side.

Type of Change

  • Bug fix
  • New feature
  • Content update (Team/Publication)
  • Documentation update
  • Other (please describe)

Changes Made

  • assets/css/styles.css: .email-container gets flex-wrap: wrap; .email-text uses flex: 1 0 auto, max-width: 100%, and overflow-wrap: break-word (no more anywhere). Tokens only — no raw hex/px, no local token redefinition.
  • _join-us/index.md and the shared teaching email boxes: insert <wbr> after @ so any forced wrap is after the local part. Address strings and data-clipboard-text / mailto hrefs are unchanged.

Testing Done

  • Tested locally using bundle exec jekyll serve
  • Checked all links and references
  • Verified content formatting
  • Cross-browser testing (if UI changes)

./scripts/lint-check.sh passed. npm test (215 passed). npm run lint passed (existing ESLint unused-var warnings only). ./scripts/build.sh completed. Playwright screenshots of .email-container at 390 / 360 / 1440 in light and dark: before from production, after from the local build.

Screenshots

Before

390 light

Join email box before, 390 light

390 dark

Join email box before, 390 dark

360 light

Join email box before, 360 light

360 dark

Join email box before, 360 dark

1440 light

Join email box before, 1440 light

1440 dark

Join email box before, 1440 dark

After

390 light

Join email box after, 390 light

390 dark

Join email box after, 390 dark

360 light

Join email box after, 360 light

360 dark

Join email box after, 360 dark

1440 light

Join email box after, 1440 light

1440 dark

Join email box after, 1440 dark

Related Issues

Design-audit finding: /join/ email copy box mid-domain wrap at 390px (light and dark).

Checklist

  • Code follows the project's style guidelines
  • All links are valid and working
  • Images are optimized and properly sized
  • Content is properly formatted
  • Documentation has been updated (if needed)
  • Changes have been tested locally
  • This PR is single-purpose and does not mix dependency/security updates with unrelated formatting or content cleanups
  • All review threads are resolved or have an explicit won't-fix / follow-up disposition before merge
  • Every accepted review finding that identifies a reproducible bug or edge case either lands a regression test in this PR or has a linked follow-up issue referenced in the thread resolution

Additional Notes

Copy behaviour and the address vatsal.sanjay@durham.ac.uk are unchanged. Teaching pages that reuse .email-container get the same soft-break habit so they do not regress under the shared CSS.

Open in Web Open in Cursor 

Summary by CodeRabbit

  • Style
    • Email addresses on the contact and registration pages can now wrap after the “@” on narrow displays, helping keep them readable without changing the displayed address itself.
    • Email links and copy-button values remain unchanged.

Prefer wrapping the action icons below the address at narrow
widths, and soft-break only after @ via <wbr> with
overflow-wrap: break-word instead of anywhere.
Copilot AI balanced review requested due to automatic review settings October 26, 2026 11:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 11a8b2e1-e41d-4218-9320-0d2c5c05c889
Commits

Reviewing files that changed from the base of the PR and between e03c766 and 3ad1ad7.

Files selected for processing: 4
  • _join-us/index.md
  • _teaching/2025-Basilisk101-Madrid.md
  • _teaching/2025-Basilisk101nano-ECS.md
  • assets/css/styles.css

Included review availability: This review used your included allowance. 1 included review remains after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

Recent review details
Context from checks skipped due to timeout: 3
  • GitHub Check: markdown-quality
  • GitHub Check: build
  • GitHub Check: PR hygiene — dependency/security separation
Additional context used
Code guidelines: 1
AGENTS.md — auto-discovered
Path-based instructions: 2
Source excerpt: Compose from `bridge.css` primitives where possible.

CodeRabbit inference engine (AGENTS.md)

Files:

  • assets/css/styles.css
Source excerpt: Mobile-first CSS; min-width media queries.

CodeRabbit inference engine (AGENTS.md)

Files:

  • assets/css/styles.css
Additional comments: 4
_join-us/index.md: 1

13-13: LGTM!

_teaching/2025-Basilisk101-Madrid.md: 1

128-128: LGTM!

Also applies to: 134-134

_teaching/2025-Basilisk101nano-ECS.md: 1

135-135: LGTM!

assets/css/styles.css: 1

1624-1624: LGTM!

Also applies to: 1644-1654

Walkthrough

Displayed email addresses now include soft break opportunities after @. Email links and copy-button values remain unchanged. Email layout CSS allows flex items to wrap and changes the address wrapping rules.

Changes: Email address wrapping

Layer / File(s) Summary
Email display and layout
_join-us/index.md, _teaching/2025-Basilisk101-Madrid.md, _teaching/2025-Basilisk101nano-ECS.md, assets/css/styles.css
Displayed email addresses add a soft break opportunity after @. The email container allows flex items to wrap, and the address uses break-word with a maximum width of 100%. Links and copy-button values retain uninterrupted addresses.

Priority: Low

Estimated code review effort: 2 (Simple) | ~7 minutes

Change: Bug fix

Suggested reviewers: cursoragent

Merge Risk: Minimal · up to 3ad1a

No merge-blocking risk is identified in the reviewed display-wrapping changes.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main fix: preventing mid-domain email wrapping in the /join/ copy box at phone widths.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (4 skipped: 4 unsupported.)

Finishing Touches
✨ Simplify code
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@VatsalSy

Copy link
Copy Markdown
Member Author

@coderabbitai review

@comphy-bot

comphy-bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

comphy-bot review status for comphy-lab/comphy-lab.github.io#156 at 3ad1ad7c: completed

Review completed for this exact pull request head.

@comphy-bot
comphy-bot self-requested a review October 26, 2026 11:08
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor
⚠️ Action not completed

Already reviewed the last commit. Use @coderabbitai full review to rerun a review of the entire changeset.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@comphy-bot comphy-bot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Review: email copy-box wrapping

Reviewed all four changed files at 3ad1ad7cdd52d615a9333c280ed09894ba58efbd (+11/-5). No P0/P1 findings.

The shared flex layout allows controls to wrap below the address, and the explicit <wbr> preserves address characters while providing a preferred break after @. The changed markup retains existing mailto targets, copy values and accessible labels. No new script or security-sensitive behavior is introduced.

Verification: packet checks for conflict markers and added trailing whitespace passed; GitHub build, markdown-quality and PR-hygiene checks passed. Deployment was skipped; the observed pending CodeRabbit status is not itself a blocker. Static review only: no PR code or test scripts were executed, and browser screenshots were not independently reproduced.

@VatsalSy
VatsalSy merged commit 798cd1f into main Oct 26, 2026
5 checks passed
@VatsalSy
VatsalSy deleted the rayleigh-cloud/join-email-wrap-f740 branch October 26, 2026 11:49
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.

4 participants