Put every item in the phone's navigation bar and let it scroll (#912) #1060
No reviewers
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo!1060
Loading…
Reference in a new issue
No description provided.
Delete branch "912-nav-bar-scroll"
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?
Below
mdthe main navigation bar held the first four items and More, whichcost a tap in front of every other item and, where the labels did not fit side
by side (Estonian at 320), put More on a second row. Now the bar holds every
item, in the person's order, on one row: the slots share the width equally
where they fit, each held at its longest word and never under 44 pixels, and
the bar scrolls sideways in its own box where they do not. That reverses
#299's "never scrolled" rule for the bar; the comments in
app.css,nav_links.htmlandcore/navigation.pynow say so. The page itself stillnever scrolls sideways (SC 1.4.10). From
mdup More is unchanged.An end with more past it fades the items out under a sticky pseudo-element,
so the last item in view is cut part way through: a shape as well as a shade.
app.jsmarks those ends (data-overflow-start/data-overflow-end) as thebar scrolls and resizes, scrolls the current page's item into view as the page
opens, and scrolls a link reached by Tab clear of the fades
(
scroll-padding-inline, SC 2.4.11) by moving the bar, never the page.--bottom-bar-heightis still measured.The help text on Settings -> Appearance said the bar held "the first four";
it now says the bar holds them all and scrolls.
Tests: the markup (every item a link of the nav, in order, More kept for the
row), the built stylesheet below
md(one row, overflow-x auto, More hidden,no counts, the fades) and the script's hooks; in the browser, at 320 in
English and Estonian, one row that scrolls with the fade at the right end, the
current item in view on load, each link reached by Tab in view, and More
absent below
mdand present from it. The reflow walk's bar test and theexisting bar tests now expect every item in the bar and More only on the row.
Closes #912
Notes for review
mask-image, which would also make the bar's background see-through.🤖 Generated with Claude Code
d68e9239021b7400699a