Fix #274: repo tab bar scrolls on narrow #297
No reviewers
Labels
No labels
actions
bug
cli
duplicate
enhancement
fork
forum
git storage
help wanted
insights
invalid
issues
moderation
oidc
ownership transfer
packages
pr/merge protection rules
projects
pull requests
question
releases
sponsorships
tags
webhooks
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crueber/walhub!297
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-274"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #274 — the repo tab bar (Code … Settings, measured scrollWidth 515 vs clientWidth 358 at 390px) cut trailing tabs mid-letter with no scroll affordance and leaked overflow to the page root (docW 531 vs 390).
Same treatment as the #273 site-nav strip:
Repo.jsx: nav gainsmax-w-full overflow-x-auto whitespace-nowrap— scrolls internally, never widens the page; acreateEffectkeeps the[aria-current=page]tab scrolled into view on navigation ({block: 'nearest', inline: 'center'}— no vertical page jump, guarded for non-DOM);aria-label+ tab list unchanged.ui.css:.repo-tabshides the strip scrollbar (both engines, stable row height) + linksshrink-0; keyboard Tab still walks the strip (focus-follow), dark + light share it. Next-tab peek is the touch affordance.web/test/unit/repo-tabs-narrow.test.js(strip-scroll pins, landmark, scrollbar hiding, scrollIntoView shape incl. guard, tab-list invariance, 390px arithmetic).docs/go/12_web_ui.md.Verification:
node --test web/test/unit/*.test.js570/570 green (with workspace node_modules; dep-free subset green without);vite buildgreen, compiled CSS carries the three.repo-tabsrules, bundle contains the scrollIntoView wiring. Browser proof open (shared-daemon network guard blocks loopback — no private daemon per workspace rules). No new deps. Do NOT merge.