Skip to content

Fix card footer source/actions vertical misalignment - #10

Merged
philoking merged 1 commit into
mainfrom
fix/card-foot-alignment
Jun 27, 2026
Merged

philoking merged 1 commit into
mainfrom
fix/card-foot-alignment

Conversation

@philoking

Copy link
Copy Markdown
Owner

Bug: in story cards, the source line (e.g. "Engadget · 1d") and the Read later / Done buttons don't line up vertically — the buttons sit ~6px low.

Cause: the footer (.card-foot / .lead-foot / .mini-foot) is an align-items: center flex row, but .card-actions still had a stray margin-top: 12px (left over from when actions stacked below the source). On a centered flex item an asymmetric top margin offsets the item's content, dropping the buttons below the source baseline.

Fix: remove the margin-top from .card-actions. One line; affects all three footer variants. The space above the footer is unchanged (it comes from .card-foot's margin-top:auto, not this margin).

Deployed on this branch to nova for testing — do not merge until confirmed.

🤖 Generated with Claude Code

The footer rows (card/lead/mini-foot) place the source line and action buttons
in one align-items:center flex row, but .card-actions still had a stray
margin-top:12px — a left-over from a stacked layout. On a centered flex item the
asymmetric top margin offsets the buttons ~6px below the source. Drop it so they
align. The gap above the footer is unaffected (it comes from card-foot's
margin-top:auto).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@philoking
philoking merged commit 667547e into main Jun 27, 2026
2 checks passed
@philoking
philoking deleted the fix/card-foot-alignment branch June 27, 2026 23:20
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