Skip to content

Improve how hero headline hyphenated compound words render#388

Merged
juliasilge merged 1 commit into
mainfrom
fix-h1-rendering-for-home-page
Jun 15, 2026
Merged

Improve how hero headline hyphenated compound words render#388
juliasilge merged 1 commit into
mainfrom
fix-h1-rendering-for-home-page

Conversation

@juliasilge

@juliasilge juliasilge commented Jun 15, 2026

Copy link
Copy Markdown
Member

A followup to #384

The homepage headline ("The data science IDE. Human-driven, AI-assisted.") wrapped awkwardly at most widths. Because a hyphen is a valid line-break point, the browser would split hyphenated compounds mid-word (e.g. "AI-" / "assisted"), and the break landed inconsistently.

This PR:

  • Forces the line break at the sentence boundary with <br>, so the H1 reads as two clean lines: "The data science IDE." / "Human-driven, AI-assisted."
  • Wraps "Human-driven," and "AI-assisted." in .nowrap spans (with a new white-space: nowrap rule scoped to .index-section h1) so those compounds never split mid-word, including when the second sentence wraps on narrow mobile screens.

The H1 sits above the profile-specific content blocks, so this applies to both the public and Workbench builds.

Here's what we'll have after this change for big screens:

Screenshot 2026-06-15 at 8 32 30 AM

For little screens:

Screenshot 2026-06-15 at 8 32 42 AM

@netlify

netlify Bot commented Jun 15, 2026

Copy link
Copy Markdown

Deploy Preview for positron-posit-co ready!

Name Link
🔨 Latest commit 0d11bd1
🔍 Latest deploy log https://app.netlify.com/projects/positron-posit-co/deploys/6a300da7d185f60008f2d89f
😎 Deploy Preview https://deploy-preview-388--positron-posit-co.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@juliasilge juliasilge marked this pull request as ready for review June 15, 2026 14:37
@juliasilge juliasilge requested a review from cindyytong June 15, 2026 14:37

@cindyytong cindyytong 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.

Thank you!!

@juliasilge juliasilge merged commit d73ab49 into main Jun 15, 2026
5 checks passed
@juliasilge juliasilge deleted the fix-h1-rendering-for-home-page branch June 15, 2026 14:41
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