Repository navigation
fix(docs): Stop long attribute names from overflowing on mobile - #821
Open
sentry-junior[bot] wants to merge 3 commits into
Open
sentry-junior[bot] wants to merge 3 commits into
sentry-junior[bot] wants to merge 3 commits into
Conversation
Long dotted keys, example values, and bare URLs had no line break opportunity, so they pushed cards past the viewport and mobile browsers zoomed the whole page out. Break dotted names after each dot, let code and prose wrap when they still don't fit, and let the deprecated badge drop below a long title. Co-Authored-By: Jan Peer Stöcklmair <10677263+JPeer264@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨
Bug Fixes 🐛
Documentation 📚
Internal Changes 🔧
🤖 This preview updates automatically when you update the PR. |
Aliases were inline links with only a right margin, so when they wrapped the chips touched the row above. Lay them out as a wrapping flex list with a gap, like examples, and keep each link one chip when its name wraps. On narrow screens the fixed-width label column left too little room for values, so detail rows now put the label above the value below the sm breakpoint. Co-Authored-By: Jan Peer Stöcklmair <10677263+JPeer264@users.noreply.github.com>
JPeer264
marked this pull request as ready for review
November 23, 2026 12:50
JPeer264
requested review from
a team,
Lms24,
alexander-alderman-webb,
andreiborza,
cleptric,
giortzisg,
mjq and
nsdeschenes
as code owners
November 23, 2026 12:50
alexander-alderman-webb
approved these changes
Nov 23, 2026
andreiborza
approved these changes
Nov 23, 2026
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 24a28d0. Configure here.
With overflow-wrap: anywhere on inline code, an enum value in a Well-defined Values row could shrink to fit beside a long brief and break mid-word, even on desktop. Keep the value at its natural width (capped at the row width) and let the brief take the remaining space.
This branch was successfully deployed
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.

On phones, most attribute category pages render wider than the screen, so the browser zooms the whole page out and the header covers only part of the width.
The cause is long tokens with no place to break: dotted keys in card titles and alias links, long example values (hashes, release strings), and bare URLs in descriptions. They spill out of their cards and set the page width. At a 390px viewport,
/attributes/gen_ai/was 1073px wide,/attributes/929px, and/attributes/sentry/679px.Changes:
DottedNamecomponent renders a key with a<wbr>after each dot. Card titles (attributes and metrics) andAttributeLinkuse it, soapp.vitals.frames.slow.countwraps at a segment boundary instead of mid-word. Copy,data-key, and Pagefind titles are unchanged, because<wbr>adds no text.codegetsoverflow-wrap: anywhereas a fallback for tokens without dots, such as hex IDs.preblocks keepwhite-space: preand still scroll horizontally.bodygetsoverflow-wrap: break-wordfor bare URLs in prose.flex-wrap, so the Deprecated badge moves under a long key instead of squeezing it.Desktop layout looks the same. After the change, every docs page and attribute category page is exactly 390px wide at a 390px viewport.
Screenshots
390px viewport, dark mode,
/attributes/sentry/. Before ismain, after is this branch.sentry.messaging.destination.name:sentry.frames.slow:sentry.replay_id:--
View Session [Sentry]