Repository navigation
Fix Principle section line wrapping on desktop - #6
Merged
Merged
Conversation
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>
✅ Deploy Preview for theselectionlab ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
🟢 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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