Skip to content

Fix Principle section line wrapping on desktop - #6

Merged
cpt9m0 merged 1 commit into
mainfrom
claude/issue-5-20260904-0252
Sep 4, 2026
Merged

cpt9m0 merged 1 commit into
mainfrom
claude/issue-5-20260904-0252

Conversation

@cpt9m0

@cpt9m0 cpt9m0 commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Forces the Principle section's body text to render as exactly two lines on desktop, one sentence per line, by adding a responsive <br> before the second sentence and slightly widening the paragraph's max-width (640px → 700px) only at the existing 821px desktop breakpoint. Mobile/tablet layouts are untouched and keep natural wrapping.

Closes #5.

Test plan

  • View PR preview on desktop width (>820px) and confirm the Principle body renders as exactly two lines, split at the sentence boundary
  • Check mobile/narrow widths (≤820px) still wrap naturally with no overflow
  • Spot-check the 820–900px range for any awkward transition

Verified locally at 1440px, 900px, 821px (all show the clean two-line split), 820px and 375px (natural wrapping, no overflow) — no awkward transition across the breakpoint.

🤖 Generated with Claude Code

Force the second sentence of the Principle body onto its own line via
a responsive <br>, and slightly widen the paragraph's max-width on
desktop so it fits without wrapping. Mobile keeps natural wrapping.

Co-authored-by: Ali Ayati <35001360+cpt9m0@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings September 4, 2026 02:57
@netlify

netlify Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for theselectionlab ready!

Name Link
🔨 Latest commit 392d617
🔍 Latest deploy log https://app.netlify.com/projects/theselectionlab/deploys/6a9a33b761d9e4000807beba
😎 Deploy Preview https://deploy-preview-6--theselectionlab.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

🟢 Approval recommended

The change is narrowly scoped to the Principle section and implements the issue’s desktop-only two-line requirement without affecting smaller breakpoints.

Pull request overview

Adjusts the Principle section typography to reliably render as two lines on desktop (one sentence per line) while preserving natural wrapping on smaller viewports.

Changes:

  • Inserted a responsive <br> between the two sentences in the Principle body copy (desktop-only).
  • Increased the Principle body paragraph max-width at the existing desktop breakpoint (821px) to help keep the second sentence on a single line.
File summaries
File Description
index.html Adds a breakpoint-controlled line break between the two sentences in the Principle body text.
styles.css Introduces .principle-break visibility rules and slightly widens .principle-body at ≥821px to support a strict two-line desktop layout.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

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

@cpt9m0
cpt9m0 merged commit 9bb2123 into main Sep 4, 2026
5 checks passed
@cpt9m0
cpt9m0 deleted the claude/issue-5-20260904-0252 branch September 4, 2026 03:02
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.

Fix Principle section line wrapping on desktop

2 participants