Repository navigation
Truncate long source names so the card footer doesn't relayout - #12
Merged
Merged
Conversation
A long outlet name (e.g. "Digital Photography School") wrapped the source line to two lines, growing the footer height and shoving the Read later / Done buttons down — visible misalignment across the Latest grid. Make the source name truncate to one line with an ellipsis, keep the relative time pinned and visible, and lock the action buttons against shrinking. Applies to all three footers (hero lead, hero side, grid) since they share srcLine()/cardActions(). 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
A long outlet name like "Digital Photography School" wraps the source line to two lines in a card footer. That grows the footer height and pushes the Read later / Done buttons down, causing visible vertical misalignment across the Latest grid (and the same footer is shared by the hero lead and side cards).
Fix
In digest.html:
srcLine()— wrap the outlet name in its own.src-namespan and keep the relative time (· 2h) as a separate, pinned element..srcbecomes a baseline flex row withmin-width: 0so it can shrink;.src-nametruncates to one line with an ellipsis;.src timeand.card-actionsgetflex-shrink: 0so the time and action buttons never compress or wrap.Now a long source renders as
Digital Photography Sch… · 2hon a single line and the action buttons stay put. One footer fix covers all three layouts (hero lead, hero side, Latest grid) since they sharesrcLine()/cardActions().Note
The separator dot now lives inside the
<time>element, so it picks up the slightly lighter time color (--text3) instead of the source color (--text2) — a minor, intentional cosmetic shift.🤖 Generated with Claude Code