Balance line wrapping in commemoration/feast/service-note lists - #153
Merged
Conversation
display:inline lets these lists wrap anywhere, occasionally leaving a single orphaned word on the last line. text-wrap:balance redistributes the wraps evenly, matching the technique already used for headings.
brianglass
force-pushed
the
fix-commemoration-title-widows
branch
from
July 30, 2026 18:06
bc40856 to
e1066a4
Compare
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
<li>elements aredisplay: inlineand the browser has no way to distinguish "space within one title" from "space between two items."text-wrap: balanceto.service-notes ul, .commemorations ul, .feasts ul, the same technique already used on this site's headings (h1, h2, h3, h4), so line breaks get redistributed evenly rather than leaving a short widow/orphan line.display: inline-block; white-space: nowrap, making each title fully atomic) but the user preferred allowing mid-title breaks in exchange for balanced wrapping, sotext-wrap: balancealone was kept.Test plan
orthocal/static/main.css, no rebuild needed) that the updated CSS renders as expected🤖 Generated with Claude Code