Skip to content

docs: wrap /docs search/execute trace on phones instead of side-scrolling - #622

Merged
kalepail merged 1 commit into
mainfrom
fix/docs-trace-wrap-mobile
Dec 5, 2026
Merged

kalepail merged 1 commit into
mainfrom
fix/docs-trace-wrap-mobile

Conversation

@kalepail

@kalepail kalepail commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

At 390px the two trace blocks on /docs (1 · SEARCH and 2 · EXECUTE) hold 629–651px of monospace inside a 344px card. They already scrolled sideways (overflow-x:auto, and the page itself didn't overflow), but on a phone the scroll box looks like text cut off at the right edge.

Below 600px, .trace pre.code now uses white-space:pre-wrap; overflow-wrap:anywhere, so every line wraps inside the card. Wider viewports keep the existing one-line, scrollable layout.

Verified locally at 390px with wrangler dev: both trace pres measure scrollWidth = clientWidth = 344, document scrollWidth is 390, and the render shows no clipped lines.

Gates: typecheck (after CI-style typegen), test, docs:lint, secrets:scan --tree, build dry-run all pass.

🤖 Generated with Claude Code

…ling

The trace scripts are ~650px of monospace in a 344px card at 390px. The
pre already scrolled horizontally, but on phones the scroll box reads as
a clipped right edge. Below 600px the trace lines now wrap inside the
card (pre-wrap, overflow-wrap:anywhere), so nothing sits past the edge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kalepail
kalepail merged commit ad2751d into main Dec 5, 2026
6 checks passed
@kalepail
kalepail deleted the fix/docs-trace-wrap-mobile branch December 5, 2026 02:01
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.

1 participant