Mobile: settings sidebar pushes nav items off-screen (not stacked/chipped on narrow widths) #276
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#276
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 settings page renders its sidebar as a fixed-width column that pushes nav items past the right edge of the screen: measured
LI.side-nav-item right:570(180px off-screen). The settings sections (Scheduled tasks, Push policy, Access, …) are unreachable by sight; the page scrolls sideways to reach them, and the content pane is squeezed below.Measured evidence
Root cause (code evidence)
web/src/pages/Settings.jsx(nav shell built at :770-836) renders the sidebar (side-navlist) and content in a two-column arrangement whose narrow-screen behavior keeps the sidebar inline rather than stacking or converting to a horizontal chip/bar. The sidebar items (~183px wide) sit alongside the content column, overflowing.Fix direction
sm:), stack the settings nav as a horizontally scrollable chip/bar above the content (the standard settings-on-mobile pattern), or collapse it into a select. The nav model is already headless (web/src/lib/settingsNav.js), so the layout change is contained to the shell markup.scrollWidth === clientWidth; the active tab is obvious.Fixed by PR #284 (#284): settings nav stacks as full-width chip bars below sm:. Measured on the live page at 390px — sections 358px stacked, bars scroll internally, shell+content contribute zero page-level overflow (shellOnly=390 with shared chrome hidden). Remaining page docW 552 is the repo tab bar (#274) + site-header cluster (#273), left to those issues. node --test 548/548, vite build green, no new deps.
Review of PR #284 (fix/issue-276) — independent verification in fresh scratch worktree (removed afterward; main worktree untouched, still clean on main).
What I checked (Settings.jsx shell + ui.css comment + 12_web_ui.md entry; settingsNav.js untouched, package.json untouched):
Verification (scratch worktree @
c9c0c00; node_modules satisfied via read-only symlink to main's install, no copies/edits):No fixes needed — nothing to push. MERGE RECOMMENDATION: ready to merge.
Fixed by PR #284 (review clean; breakpoints + no-overflow verified; 548/548), merged. Closing.