Skip to content

Fix CSS to prevent method name overflow#1686

Merged
st0012 merged 1 commit intoruby:masterfrom
ybiquitous:fix-method-name-overflow
Apr 27, 2026
Merged

Fix CSS to prevent method name overflow#1686
st0012 merged 1 commit intoruby:masterfrom
ybiquitous:fix-method-name-overflow

Conversation

@ybiquitous
Copy link
Copy Markdown
Contributor

This prevents method names from overflowing their container by adding overflow-wrap: anywhere to the .method-name CSS.

The anywhere property value is now widely supported.

Ref: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/overflow-wrap#anywhere

Demo:

Screen.Recording.2026-04-27.at.22.07.43.mov

This prevents method names from overflowing their container
by adding `overflow-wrap: anywhere` to the `.method-name` CSS.

The `anywhere` property value is now widely supported.

Ref: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/overflow-wrap#anywhere
Copilot AI review requested due to automatic review settings April 27, 2026 13:09
@ybiquitous ybiquitous requested a deployment to fork-preview-protection April 27, 2026 13:09 — with GitHub Actions Waiting
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Aliki RDoc HTML template styling to prevent long method names from visually overflowing their header container by allowing more aggressive line breaking.

Changes:

  • Add overflow-wrap: anywhere; to main .method-heading .method-name to ensure long method names can wrap within available width.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Member

@st0012 st0012 left a comment

Choose a reason for hiding this comment

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

Thank you!

@st0012 st0012 merged commit bc0baee into ruby:master Apr 27, 2026
42 of 44 checks passed
@ybiquitous ybiquitous deleted the fix-method-name-overflow branch April 27, 2026 13:27
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.

3 participants