Repository navigation
fix(landing): rotating hero term hugs its suffix (zh 对话 gap) - #718
Merged
Merged
Conversation
#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
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.
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