Repository navigation
README: phone-legible narrow gate-demo GIF (648x900, 32px) - #34
Merged
Merged
Conversation
The 960x600 gate-demo.gif is scaled to about 324 css px on a 390 px phone, which puts its text near 2.7 css px cap height. scripts/record-gate-demo.mjs --narrow replays the same real `node dist/cli.js` runs on a 648x900 canvas at 32px (cap about 10 css px at 324, 11 at 358), wrapped at 34 columns on word boundaries, never inside FAILED/PASSED; re-joining the wrapped rows is checked against the transcript inside the script. The wide clip and its transcript are untouched; README lines 41 and 43 point at the narrow clip. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
tests/walkthrough.test.ts pins scripts/record-gate-demo.mjs:36 to
import("playwright"); the --narrow doc block had pushed it to line 49. Move
the block below the import so line 36 is unchanged (the test is not edited).
Codex review note: the overflow guard read scrollWidth while every row was
display:none, so it could never fire. Show all rows once and count rows whose
scrollWidth exceeds clientWidth; a COLS=40 copy now aborts with 36 rows over.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The README's gate-demo GIF (960x600) is scaled to about 324 css px on a 390 px phone, where its text has a cap height near 2.7 css px.
node scripts/record-gate-demo.mjs --narrownow replays the same realnode dist/cli.js init/gateruns on a 648x900 canvas at 32px Consolas, wrapped at 34 columns on word boundaries (never inside FAILED / PASSED), and writesdocs/media/gate-demo-narrow.gifplus the fresh run'sdocs/media/gate-demo-narrow-transcript.txt. README lines 41 and 43 point at it. Nothing else in the README changes (brand block lines 1-12 untouched).The old
docs/media/gate-demo.gifanddocs/media/gate-demo-transcript.txtare not touched (the default wide mode of the script is unchanged).Measured (before merge, Chromium, after
img.decode())documentElement.scrollWidth390. At 1280x900 the image renders 648x900.Reproduce
npm ci && npm run build && npm i --no-save playwright && node scripts/record-gate-demo.mjs --narrow(ffmpeg on PATH).🤖 Generated with Claude Code