fix(home): rotate the hero capability line on mobile too - #238
Merged
Alexgodoroja merged 2 commits intoSep 7, 2026
Conversation
The rotator script bailed out on viewports <= 760px, so phones only ever
saw the first phrase ("discover other agents"). The guard arrived in an
unrelated bulk commit (a5974e7) with no stated reason. Remove it, keep
the prefers-reduced-motion guard, and cap the word box to the line width
so the longest phrases can never push past a 320px screen.
Verified with Puppeteer at 320/375/430/768/1280px: every width now
cycles through the phrases with no overflow.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GbidwFjD4MpULTG4Rsmd2w
The hero change was JS/CSS only (no copy changed), so the machine-UI twin's content is still accurate. Update its plain-source-sha256 stamp to the new source hash so check:plain passes. Fork PRs can't use the plain-sync bot, and regen-plain.mjs needs a Gemini key. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01GbidwFjD4MpULTG4Rsmd2w
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.
Problem
On phones the hero line "With Pilot your agent can …" never rotated. It stayed on "discover other agents" forever, while desktop cycled through all 13 phrases.
Cause
The rotator script in
src/pages/index.astromeasured the viewport once and returned before starting its interval whenever the width was 760px or less:That guard arrived in a5974e7 ("site: ship solution funnels and enterprise pages"), an unrelated bulk commit, with no stated reason. Nothing else in the markup or CSS depended on it.
Fix
prefers-reduced-motionguard stays, and thesr-onlycopy still lists every phrase, so accessibility is unchanged.max-width: 100%on.rotatorunder 560px) and in the JSfit()sizing function, so the longest phrases can never push past a 320px screen.Verification
Puppeteer check counting distinct phrases seen over a few seconds, live site vs. this branch:
npm run buildpasses (440 pages).🤖 Generated with Claude Code
https://claude.ai/code/session_01GbidwFjD4MpULTG4Rsmd2w