fix(ui): keep the account address copy icon inside the viewport at mobile (#3944)#4946
fix(ui): keep the account address copy icon inside the viewport at mobile (#3944)#4946real-venus wants to merge 1 commit into
Conversation
…bile On /accounts/$ss58 the address box wrapped the full ss58 in a max-w-fit box around an inline-flex CopyableCode, both of which size to content — so at 375px the long address grew the box past the right viewport edge and clipped the trailing copy icon (its primary tap target). Cap the box at the parent width while keeping it shrink-to-content on wider viewports (w-fit max-w-full) and cap the code button too, so the address truncates inside the box and the copy icon stays fully visible and tappable. (JSONbored#3944) Closes JSONbored#3944
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4946 +/- ##
=======================================
Coverage 97.93% 97.93%
=======================================
Files 163 163
Lines 19390 19390
Branches 7365 7365
=======================================
Hits 18990 18990
Misses 53 53
Partials 347 347 🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-13 00:33:46 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 7 non-blocking
Review context
Contributor next steps
Signal definitions
[BETA] Chat with GittensoryAsk Gittensory a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://gittensory.aethereal.dev/docs/gittensory-commands Visual preview
Click any thumbnail to open the full-size screenshot. Before = production · After = this PR's preview deploy. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
|
Please kindly review. |

Summary
Closes #3944
On
/accounts/$ss58the address box wrapped the full ss58 in amax-w-fitbox around aninline-flexCopyableCode— both of which size to content. At 375px the long address grew the box past the right viewport edge and clipped the trailing copy icon (the page's primary tap target). This caps the box at the parent width while keeping it shrink-to-content on wider viewports(
w-fit max-w-full) and caps the code button too, so the address truncates inside the box and the copy icon stays fully visible and tappable.Changes
routes/accounts.$ss58.tsx— the address-box wrapper is noww-fit max-w-full(shrink-to-content, capped at the parent) and theCopyableCodeis passedclassName="max-w-full"so its code truncates and the copy icon (alreadyshrink-0) stays inside the viewport.Screenshots
Account address box on
/accounts/<ss58>at fixed viewports (Playwright, no devtools). The fix is mobile-gated: at 375px the before lets the box grow to the full ss58 with the copy icon jammed against the right edge, while the aftercaps the box so the address truncates and the copy icon stays fully visible/tappable. At tablet/desktop the box is compact either way — those pairs confirm no regression.
before
after
before
after
before
after
before
after
before
after
before
after
Validation
tsc --noEmit✓ ·prettier --check(3.9.4) ✓ ·eslint(0 errors) ✓vitest run— 670/670 pass ✓ ·build✓/accounts/*isn't an e2e-checked route, so no HAR re-record