Skip to content

Pages wider than a phone: help tooltips past the edge, and a check that sees them (sc-8778) - #10

Merged
ndbroadbent merged 1 commit into
mainfrom
phone-overflow
Dec 2, 2026
Merged

ndbroadbent merged 1 commit into
mainfrom
phone-overflow

Conversation

@ndbroadbent

Copy link
Copy Markdown
Member

sc-8778. The phone screenshots of the account page (427px) and a build with changes (411px, and 1487px at 1440) were wider than the screen, yet the overflow check in scripts/screenshots/checks.mjs passed.

  • Why the check missed it: html and body clip sideways (overflow-x: clip), so scrollWidth never grows. The content was laid out past the right edge and cut off, which is what the full-page capture measured. The check now fails on anything laid out past the right edge outside a box that scrolls on its own (a code block), names it, and waits for fonts like the capture.
  • The culprit: the (?) help tooltip (span.help-tip). It was centred on its button and laid out while hidden. Near a phone's right edge it widened the page, and once opened it was cut off for users too.
    • Closed, it's now display: none. Screen readers still read it through aria-describedby.
    • Open, it's placed in the screen: fixed, clamped with an 8px margin, below the button when there's no room above. It opens on hover, focus or a tap, and Escape, scrolling or resizing closes it.
  • Verified: on docspring-dev with the seeded server, account and build changes capture at 390px wide at 390 and 1440 at 1440, and the check passes on all 18 pages. A new test covers the tooltip's states.

Review: the account and build-changes screenshots lose their extra width: a blank strip on the right disappears.

@visualci-com

visualci-com Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

VisualCI

docspring/visualci · build #118 · 2 changed, 291 unchanged · approved by visualci coordinator agent (MCP) for Nathan Broadbent

Only the two tools-list JSON snapshots changed: main's matches wording in the get_build and review descriptions (already on main, build 119). Brings the branch in line with main.

This PR vs base: 97 changed, 3 added since #90, across 3 builds

Snapshot Before After
json/mcp/lists_the_tools_each_kind_of_token_can_use/tools-list-project-token (changed) text text, see the build
json/mcp/lists_the_tools_each_kind_of_token_can_use/tools-list-user-token (changed) text text, see the build

Updated as builds change. Agents can review with VisualCI's MCP tools.

…den and centred on its button, so near a phone's right edge it widened the page (account 427px, build changes 411px; 1487px at 1440) and was cut off when open. It's now display: none while closed, and placed in the screen (fixed, clamped, below the button when there's no room above) when open on hover, focus or a tap. checks.mjs missed it because html and body clip sideways, so scrollWidth never grew: it now fails on anything laid out past the right edge outside a box that scrolls on its own, and names it
@ndbroadbent
ndbroadbent merged commit c4470d2 into main Dec 2, 2026
10 checks passed
@ndbroadbent
ndbroadbent deleted the phone-overflow branch December 2, 2026 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant