Repository navigation
docs: wrap /docs search/execute trace on phones instead of side-scrolling - #622
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.codenow useswhite-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 tracepres 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