feat(web): compact on-this-day cards #1165

Merged
chris merged 1 commit from feat/on-this-day-compact-cards into main 2026-10-12 21:46:42 +02:00
Owner

Summary

  • 'X years ago' cards on the start page are much more compact:
    • Mini-wall capped at three sample images in one fixed 112px row (the old 4–5 item two-row layout is gone).
    • Cards are shrink-to-fit: width = image row + padding, no fixed 520px (tile width derives from row height × aspect ratio, so cards may vary per entry).
    • Header collapsed to a single title line ('A year ago'); the 'On this day' eyebrow and the photo-count label are removed from the card. Modal count is unchanged.
  • Hover/focus, modal click behavior, deep-link (?date=), and focus-return are untouched.

Tests

  • vitest OnThisDayCarousel/OnThisDayModal specs: 21/21 passed
  • Playwright on-this-day.spec.ts (desktop + mobile): 14/14 passed
  • svelte-check: 0 errors (pre-existing warnings only)
## Summary - 'X years ago' cards on the start page are much more compact: - Mini-wall capped at **three** sample images in **one** fixed 112px row (the old 4–5 item two-row layout is gone). - Cards are **shrink-to-fit**: width = image row + padding, no fixed 520px (tile width derives from row height × aspect ratio, so cards may vary per entry). - Header collapsed to a single title line ('A year ago'); the 'On this day' eyebrow and the photo-count label are removed from the card. Modal count is unchanged. - Hover/focus, modal click behavior, deep-link (?date=), and focus-return are untouched. ## Tests - vitest OnThisDayCarousel/OnThisDayModal specs: 21/21 passed - Playwright on-this-day.spec.ts (desktop + mobile): 14/14 passed - svelte-check: 0 errors (pre-existing warnings only)
feat(web): compact on-this-day cards
All checks were successful
Wiki Sync / Sync wiki from docs (push) Has been skipped
Build and Deploy / Detect changed services and test scopes (push) Successful in 3s
Build and Deploy / Android unit tests and debug APK (push) Has been skipped
Build and Deploy / Smoke API and media worker (push) Has been skipped
Build and Deploy / Smoke web (push) Has been skipped
Build and Deploy / Smoke ML worker (push) Has been skipped
Build and Deploy / Smoke people worker (push) Has been skipped
Build and Deploy / Build postgres image (push) Has been skipped
Build and Deploy / Build plants worker image (push) Has been skipped
Build and Deploy / Build converter worker image (push) Has been skipped
Build and Deploy / Deploy postgres (push) Has been skipped
Build and Deploy / Build API image (push) Has been skipped
Build and Deploy / Build media worker image (push) Has been skipped
Build and Deploy / Build ML worker image (push) Has been skipped
Build and Deploy / Build people worker image (push) Has been skipped
Build and Deploy / Build web image (push) Has been skipped
Build and Deploy / Deploy API (push) Has been skipped
Build and Deploy / Deploy web (push) Has been skipped
Build and Deploy / Deploy media worker (push) Has been skipped
Build and Deploy / Deploy ML worker (push) Has been skipped
Build and Deploy / Deploy plants worker (push) Has been skipped
Build and Deploy / Deploy people worker (push) Has been skipped
Build and Deploy / Deploy converter worker (push) Has been skipped
Build and Deploy / Clean Docker build artifacts (push) Has been skipped
Build and Deploy / Run scoped PR tests (push) Successful in 5m39s
1a853db70c
- Cap the card mini-wall at three samples in one fixed 112px row
  (drop the 4-5 item two-row chunking).
- Shrink cards to their image-row width (no fixed 520px, no
  measured container; tile width = height x aspect).
- Merge the eyebrow + count header into a single 'A year ago' title;
  remove the photo-count label from the card.
- Update component and e2e specs to the new geometry.
chris merged commit 2ebcaf637c into main 2026-10-12 21:46:42 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
chris/memories!1165
No description provided.