Skip to content

feat: reveal truncated tab titles with a hover marquee#223

Open
PathGao wants to merge 3 commits into
alecdotdev:masterfrom
PathGao:codex/tab-strip-scroll
Open

feat: reveal truncated tab titles with a hover marquee#223
PathGao wants to merge 3 commits into
alecdotdev:masterfrom
PathGao:codex/tab-strip-scroll

Conversation

@PathGao

@PathGao PathGao commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

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

PathGao and others added 3 commits July 14, 2026 18:25
… 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>
@PathGao PathGao changed the title fix: tab strip horizontal swipe scrolling and hover marquee for truncated titles feat: reveal truncated tab titles with a hover marquee Jul 14, 2026
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