Skip to content

Balance line wrapping in commemoration/feast/service-note lists - #153

Merged
brianglass merged 1 commit into
mainfrom
fix-commemoration-title-widows
Jul 30, 2026
Merged

Balance line wrapping in commemoration/feast/service-note lists#153
brianglass merged 1 commit into
mainfrom
fix-commemoration-title-widows

Conversation

@brianglass

Copy link
Copy Markdown
Owner

Summary

  • Individual saint/feast/service-note entries were occasionally wrapping mid-title at an awkward point (e.g. leaving a lone orphaned word on the last line), since these <li> elements are display: inline and the browser has no way to distinguish "space within one title" from "space between two items."
  • Adds text-wrap: balance to .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.
  • Considered a stronger fix (display: inline-block; white-space: nowrap, making each title fully atomic) but the user preferred allowing mid-title breaks in exchange for balanced wrapping, so text-wrap: balance alone was kept.

Test plan

  • Verified live against the dev server (bind-mounted orthocal/static/main.css, no rebuild needed) that the updated CSS renders as expected
  • No further browser/visual regression testing done in this session

🤖 Generated with Claude Code

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
brianglass force-pushed the fix-commemoration-title-widows branch from bc40856 to e1066a4 Compare July 30, 2026 18:06
@brianglass
brianglass merged commit f0c906c into main Jul 30, 2026
5 checks passed
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.

1 participant