Mobile: repo tab bar truncates with no scroll affordance (Releases/Settings unreachable-looking) #274
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 project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crueber/walhub#274
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
What's wrong
At a phone viewport (390×844), the repo tab bar (Code / Commits / Issues / Pulls / Checks / Releases / …) overflows: measured
scrollWidth 515 vs clientWidth 358— the trailing tabs (Releases, Settings, Wal) are cut off mid-letter with no scroll affordance (no visible scrollbar, no fade, no wrap). On the releases page the tab row visually truncates at "R…" (screenshot evidence). The user cannot tell more tabs exist, and reaching them requires an invisible horizontal pan of the page (the whole page also scrolls: pagedocW 531 vs 390).Measured evidence
Root cause (code evidence)
web/src/pages/Repo.jsx:541-551— the tab<nav class="repo-tabs mb-4 flex gap-1 border-b …">is a plain flex row with nooverflow-x, no wrap, no scroll snap. Nine tabs × (label + px-3 py-1.5 + gap) exceed 390px.docW 530-531 vs 390).Fix direction
repo-tabshorizontally scrollable on small screens:overflow-x: autowithscrollbar-width: none-style hiding plus a visible affordance — edge fade masks (gradient) or scroll-snap — so truncation is discoverable. Keep the active tab scrolled into view on navigation (scrollIntoView({inline:'center'})whenactiveTabchanges).scrollWidth === clientWidth(tab overflow no longer leaks to the page).Fixed by #297 (branch fix/issue-274, ready for review — not merged): repo tab bar scrolls internally below the breakpoint (#273 site-nav treatment — overflow-x-auto strip, hidden strip scrollbar, shrink-0 links, active tab scrolled into view, keyboard/Tab intact, dark + light). node --test 570/570 green, vite build green. Browser proof open (shared-daemon loopback guard).
Review of PR #297 (fix/issue-274, repo tab bar scrolls on narrow) — verified in scratch worktree at origin/fix/issue-274 (
98462d1).What the change does (4 files, +136/-1, no Go, no package.json):
Review against the brief:
Nits (not blocking, no fix pushed): the id && guard (Repo.jsx:515) is dead but harmless — activeTab never returns falsy. inline:center recenters even when the tab is already fully visible; harmless (no-op without overflow).
Verification (scratch worktree only, no browser per instructions — browser proof remains open as the PR itself notes):
MERGE RECOMMENDATION: ready to merge.
Fixed by PR #297 (review clean; 570/570 node tests), merged. Closing.