Skip to content

feat: justified grid fills full viewport; fave thumbs preserve aspect ratio#2

Closed
yaniv-golan wants to merge 1 commit intomainfrom
feat/faves-justified-grid
Closed

feat: justified grid fills full viewport; fave thumbs preserve aspect ratio#2
yaniv-golan wants to merge 1 commit intomainfrom
feat/faves-justified-grid

Conversation

@yaniv-golan
Copy link
Copy Markdown
Owner

Summary

  • Photostream and faves pages break out of the 1200 px column with a main--wide CSS modifier, so the justified grid fills the browser window
  • Fave thumbnail downloads now prefer Small 320 / Small over Large Square, preserving natural aspect ratios; Fave model gains thumbnail_width / thumbnail_height
  • Faves template computes flex-basis from stored dimensions, identical to the photostream behaviour
  • Cached square thumbnails: PIL reads their actual dimensions on cache-hit so old archives degrade gracefully
  • --thumb-h bumped 180 → 220 px; grid-tile max-width relaxed 4× → 6× for panoramas

Test plan

  • uv run pytest — 252 tests pass
  • Re-run fetch-external and verify fave thumbnails are non-square
  • Open photostream and faves in browser at various window widths — grid should fill the full width
  • Confirm all other pages (about, albums, photo detail) keep the centred 1200 px layout

🤖 Generated with Claude Code

… ratio

Photostream and faves pages now use a full-width layout (main--wide class,
max-width: none) so the justified grid fills the browser window like Flickr.

Fave thumbnail fetching switches from square crops (Large Square 150×150) to
aspect-ratio-preserving sizes (Small 320 preferred), storing width/height in
the Fave model. The faves template computes flex-basis from the stored ratio,
matching the photostream's existing behaviour. Cached square thumbnails have
their dimensions read via PIL so old archives degrade gracefully.

Also: --thumb-h bumped 180→220px for better visual density at full width;
grid-tile max-width relaxed from 4× to 6× row-height for panoramas.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@yaniv-golan yaniv-golan deleted the feat/faves-justified-grid branch April 24, 2026 07:09
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