Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Reverse-order latest 5 DJ snapshots and add RTL snapshot grid at large breakpoints#84

Draft
si wants to merge 1 commit intomainfrom
codex/reverse-snapshot-order-in-detail-view
Draft

Reverse-order latest 5 DJ snapshots and add RTL snapshot grid at large breakpoints#84
si wants to merge 1 commit intomainfrom
codex/reverse-snapshot-order-in-detail-view

Conversation

@si
Copy link
Owner

@si si commented Dec 20, 2025

Motivation

  • Show the most recent five snapshots on a DJ detail page and ensure their visual order matches breakpoint expectations.
  • On small screens the newest snapshot should appear first (top); on large screens the visual flow should run right-to-left so the newest appears on the right.
  • Keep card content readable (text remains left-to-right) while flipping the visual ordering of the grid.

Description

  • Limit DJ detail page snapshots to the five most recent items by adding {% set recentSnapshots = author.items | reverse | slice(0, 5) %} in src/dj/authors.njk and iterate over recentSnapshots.
  • Add a snapshot-grid class to the snapshot list: <ul class="tdbc-column-container snapshot-grid">.
  • Add .snapshot-grid rules to src/css/_layout.scss that set direction: ltr by default and switch to direction: rtl at @media (min-width: 80ch) so the grid visually flows right-to-left on larger viewports. Ensure child cards keep direction: ltr so text remains readable.

Testing

  • Ran npx eleventy to build the site; the build completed and pages were written (succeeded).
  • Invoked the site server via npm start (which runs Eleventy in serve mode); the server started (succeeded).
  • Attempted an automated Playwright screenshot of the DJ detail page to verify visual ordering, but the browser connection failed (net::ERR_CONNECTION_REFUSED) during the capture (failed).

Codex Task

@netlify
Copy link

netlify bot commented Dec 20, 2025

Deploy Preview for housefinesse ready!

Name Link
🔨 Latest commit a4eaf46
🔍 Latest deploy log https://app.netlify.com/projects/housefinesse/deploys/69464b51a8dcd7000897ecb2
😎 Deploy Preview https://deploy-preview-84--housefinesse.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant