Repository navigation
Clamp long titles to a few lines with full-title hover tooltip - #13
Merged
Merged
Conversation
Runaway headlines (e.g. the "He's sitting with his arms folded…" quote-lede ones) blew out the Latest grid: grid cards take their height from the tallest card in the row, so one giant title left huge uneven gaps and pushed cards into ragged rows. Clamp titles with -webkit-line-clamp (lead 4 lines, mini/card 3) and expose the full headline via a native title="" hover tooltip on each heading, using the existing escapeAttr() helper. Covers hero lead, hero side, grid, and the saved-search card. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Problem
Runaway headlines (the quote-lede ones like "He's sitting with his arms folded, in a suit, you know, 'impress me'…") wreck the Latest grid. Grid cards take their height from the tallest card in the row, so a single giant title leaves huge uneven gaps and pushes the rest of the cards into ragged rows.
Fix
In digest.html:
-webkit-line-clamp+overflow: hidden: hero lead → 4 lines, hero-side mini and grid cards → 3 lines. A too-long headline now ends in an ellipsis instead of blowing out its card.title=""tooltip on each heading, escaped with the existingescapeAttr()helper. Added to all four render sites: hero lead, hero side, grid card, and the saved-search card.This keeps grid rows even while the complete headline is always one hover away.
🤖 Generated with Claude Code