feat: reveal truncated tab titles with a hover marquee#223
Open
PathGao wants to merge 3 commits into
Open
Conversation
… tabs sooner The wheel handler only translated deltaY, so two-finger horizontal swipes (reported as deltaX) did nothing and the only way to reach overflowed tabs was the arrow buttons one step at a time. Scroll by whichever axis dominates the gesture. Also lower the tab min-width from 100px to 72px so the strip compresses before it overflows. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Compressing tabs below 100px made every title unreadable at once — revert that. Instead, a title that does not fit scrolls into view while the pointer rests on its tab (duration proportional to the hidden width), and snaps back on leave. Horizontal trackpad scrolling of the strip stays from the previous commit. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… native The strip is overflow-x:auto, so two-finger horizontal swipes never went through the wheel handler at all; it exists solely to map vertical wheels onto horizontal scroll. Intercepting deltaX replaced native momentum scrolling with JS increments under scroll-behavior:smooth, which can only feel worse. The hover marquee is this branch's actual deliverable. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
When a tab title does not fit, resting the pointer on the tab slides the hidden part into view — duration proportional to the hidden width — and it snaps back on leave. The ellipsis yields to the sliding text only while the marquee runs. Tab widths are unchanged (compressing them just makes every title unreadable), and no behavior changes for titles that fit.
(An earlier revision of this PR also touched the wheel handler under the mistaken belief that horizontal trackpad swipes were broken — the strip is
overflow-x: auto, so they were always handled natively. That change is reverted; the handler still only maps vertical wheels to horizontal scroll, as upstream intended.)🤖 Generated with Claude Code