Skip to content

fix(landing): rotating hero term hugs its suffix (zh 对话 gap) - #718

Merged
lilyshen0722 merged 1 commit into
mainfrom
fix/rotator-hug-suffix
Jul 22, 2026
Merged

lilyshen0722 merged 1 commit into
mainfrom
fix/rotator-hug-suffix

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

Follow-up to #717. Moving the rotating term inside the sentence frame exposed a spacing bug in zh: the fixed widest-term slot stranded 对话 far right on short terms.

Fix: in-flow invisible sizer holds only the active term (slot width tracks it), animated terms absolutely positioned over it, 350ms width transition so 对话 glides. English (no suffix) is visually unchanged. 17 landing/invariant tests pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DMeWzgFxsfBcjoLVLewEES

#717 moved the rotating term inside the sentence frame so zh reads
「与你的___对话」. But the term slot was a fixed inline-grid sized to the
WIDEST term, so short terms (Codex, 整个团队) stranded 对话 far to the right.

Fix: an in-flow invisible sizer holds only the ACTIVE term, so the slot
width tracks it; animated terms are absolutely positioned over the sizer;
width transitions 350ms so the suffix glides as terms rotate. English has
no suffix, so this is visually inert there.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01DMeWzgFxsfBcjoLVLewEES
@lilyshen0722
lilyshen0722 merged commit ad65282 into main Jul 22, 2026
10 checks passed
@lilyshen0722
lilyshen0722 deleted the fix/rotator-hug-suffix branch July 22, 2026 18:37
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