Repository navigation
Keep authored tabs on one line and fade the strip edges - #291
Conversation
|
Review: Looks good Checked in headless Chromium on the stress doc (6 long tabs) at 1440x900 and 390x844, plus reduced motion. CI is green and Works:
Finding (minor, non-blocking): Note: no UI edits a tab label inline in this build (labels are Lexical node props); I could only rely on the existing |
|
Addressed review: |
7537d34 to
986588f
Compare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
986588f to
a5b5ff1
Compare
Authored tabs remain on one line, show the full label on hover, and fade strip edges where more tabs are hidden. The selected tab stays in view; smooth scrolling respects reduced motion.
Clean rebase preserved all three patches. Local checks, types, three geometry unit tests and all 11 responsive-content/document-tab-stability browser tests pass. Corrected the original description’s local image paths to its existing GitHub attachments. Final CI is running.
Original proposal and screenshots
Why
Overflowing authored tabs were hard-clipped at the pane edge with no hint that more tabs exist, and on a phone a long label wrapped and was cut mid-word.
What changed
max-w-64, ellipsis, full label intitle.--spacingtoken, updated on scroll and resize). Pure helpertab-edges.tswith unit tests.prefers-reduced-motion. Selected tab is still revealed on load and selection; arrow/Home/End unchanged.Screenshots
Before 1440 (last tab selected):

After 1440:

Before 390:

After 390:

Testing
bun test packages/editor/src/widgets/tab-edges.test.tspassbun run ci,bun run typespass🤖 Generated with Claude Code