Repository navigation
fix(web): keep the repo header's actions on one row on phones - #747
Conversation
At 390 px, search, "Copy link", Fork/Pin, Star and the "…" menu did not fit one line, so the "…" button wrapped onto a row of its own above the description. Below `sm` the repo header's Copy link button shows only its icon; the label stays its accessible name, and "Copied" still shows as the check icon. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Problem
At 390 px the repo header's actions (code search, "Copy link", Fork/Pin, Star, "…") don't fit one line. On repos with a security policy (e.g. mainnet dash-forge), the "…" menu wraps onto a row of its own above the description.
Change
Below
sm, the repo header's Copy link button shows only its icon. The label stays as screen-reader text, so it's still the button's accessible name, and "Copied" still shows as the check icon. On touch screens the icon-only button keeps a 44 px minimum width, and it gets a "Copy link" tooltip for narrow desktop windows. Other pages that useCopyLinkButtonare unchanged: the new prop is off by default. A unit test covers the prop.Evidence
mainnet dash-forge, 390 px. Before (live) / after (this branch built for mainnet): Copy link and "…" sit on the same row (both top = 170 px).
Still open
The row fits for signed-out visitors (the probe's case) and for private repos. When signed in on a public repo, the extra Pin and Watch buttons still push Star and "…" onto a second line. Making those icon-only on phones would be the follow-up.
Migration / compat check
data-testid="copy-link", itsdata-hrefand the copied link don't change.🤖 Generated with Claude Code
Summary by CodeRabbit