Skip to content

Back Room: every section's game rows are even - #337

Merged
ngcoding10 merged 2 commits into
mainfrom
claude/lucid-hawking-t8pygi
Nov 27, 2026
Merged

ngcoding10 merged 2 commits into
mainfrom
claude/lucid-hawking-t8pygi

Conversation

@ngcoding10

Copy link
Copy Markdown
Collaborator
  • Back Room page and phone page: every section now fills its rows evenly, with no more rows of 4 followed by a row of 1. layout.js counts the cards actually showing in each section and picks the column count, and which cards are wide, so every row ends flush. For example, Cars and Shooters (5 games each) are now a wide card plus one, then three. No games were added, removed or reordered, and no game code changed.
  • Always even: this reruns when the game search filters cards, when a player's saved Edit layout is applied, and when the window is resized. It also works when the Back Room opens on the home page. It was checked from 1440px down to 320px, phone sideways, light and dark, and the holiday TV look.
  • Edit layout: the old gap-filling code (.lay-fill / .lay-fw) is removed, since gaps can't happen any more. "Big" is now a preference: a game can come out a different size to keep rows even, and the sizes editor marks that with a dashed border and an "Evens the rows" note (with Spanish). The saved data format (layout:v1) is unchanged.
  • Fixed on the way: Flood Crew's card was nested inside Leaf Sweep's card after an earlier merge, which made the Arcade rows hundreds of pixels tall. Its missing closing tags are added. The Arcade filter button said "7 games" and now says 9.
  • Files: e63334287a3deaa3/layout.js, games.css, index.html, m/index.html, holiday.js (one selector), README.md, and the What's new file e63334287a3deaa3/news/even-rows.json.

Generated by Claude Code

layout.js now picks each section's column count and which cards are wide
from the cards actually showing (search, saved order and sizes included),
so rows always end flush. Same on the phone page and the puzzle tiles.
Also gives Flood Crew its own card (its markup was nested inside Leaf
Sweep's) and fixes the Arcade button's game count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cw2rM74nXSN426CQRHrrjU
@netlify

netlify Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cosmic-dasik-e73c56 ready!

Name Link
🔨 Latest commit 34a41e7
🔍 Latest deploy log https://app.netlify.com/projects/cosmic-dasik-e73c56/deploys/6b08dbf8b9ea509723774aca
😎 Deploy Preview https://deploy-preview-337--cosmic-dasik-e73c56.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.

@ngcoding10
ngcoding10 merged commit aa256ae into main Nov 27, 2026
4 of 6 checks passed
@netlify

netlify Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for ascoding11 ready!

Name Link
🔨 Latest commit 34a41e7
🔍 Latest deploy log https://app.netlify.com/projects/ascoding11/deploys/6b08dbf8ecf6a2fc95366d5d
😎 Deploy Preview https://deploy-preview-337--ascoding11.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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants