Skip to content

Keep the tag rail's Manage button out of the row that scrolls - #122

Merged
vmillet-dev merged 1 commit into
mainfrom
fix/the-tag-rail-keeps-its-manage-button
Sep 15, 2026
Merged

vmillet-dev merged 1 commit into
mainfrom
fix/the-tag-rail-keeps-its-manage-button

Conversation

@vmillet-dev

Copy link
Copy Markdown
Owner

Closes #115.

.tag-rail was one flex row in overflow-x: auto carrying the label, the pills
and the Manage button, and the button held its place with margin-left: auto.
That works until the tags overflow — and then stops, because margin: auto
distributes free space and there is none left. The button detached from the
right edge, followed the last pill, and left the viewport.

Measured, forty tags on a 1920-wide window

before after
Manage button at x 2710 1834
visible in the rail false true
the pills scroll by 876px

The pills now live in a flex: 1 box of their own that scrolls; the label and
the button sit outside it and stay put.

And the rail admits it scrolls

Both rails gained a fade on the right edge. It costs no measurement and no
JavaScript: the pills are left-aligned inside a flex: 1 box, so while
everything fits the faded band falls on empty space and nothing shows.

The language rail gets the same rule. It has no trailing control to lose, so it
was never broken — but at a narrow window it hides formats with nothing saying
so, which is the same defect minus the casualty.

Test

Structural, in the unit suite: jsdom lays nothing out, so what is asserted is
that the button is not inside .tag-rail-scroll, which is what keeps it
reachable. The position numbers above came from driving the real binary and are
quoted in the PR rather than frozen into a test that would measure the runner.

Checked locally

npm test 969 passing, npm run lint clean, npm run test:e2e 15/15 in 4:03.

🤖 Generated with Claude Code

Inside the scrolling row its margin-left: auto had no free space to claim
once the tags overflowed, so it followed them out of the viewport — at
forty tags it sat at x=2710 in a rail 1920 wide.

Both rails also fade at the right edge now, so a row that scrolls says so.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@vmillet-dev
vmillet-dev merged commit cf6a9aa into main Sep 15, 2026
9 checks passed
@vmillet-dev
vmillet-dev deleted the fix/the-tag-rail-keeps-its-manage-button branch September 15, 2026 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The tag rail's Manage button scrolls out of reach once there are tags to manage

1 participant