Skip to content

fix(vibenet): fix mobile overflow in account demo - #17

Merged
montycheese merged 1 commit into
mainfrom
fix-account-mobile-overflow
Jul 23, 2026
Merged

fix(vibenet): fix mobile overflow in account demo#17
montycheese merged 1 commit into
mainfrom
fix-account-mobile-overflow

Conversation

@montycheese

@montycheese montycheese commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Problem

On mobile, long hex addresses/hashes in the AA account demo overflowed their cards horizontally (screenshots: the account hero address, and the transaction result row with the Explorer link).

Screenshot 2026-07-23 at 12 52 21 PM Screenshot 2026-07-23 at 12 52 10 PM

Root cause

  • Account hero address (ConfigView): the copy button was w-fit, so it sized to the full 42-char address and overflowed the card — the <code>'s truncate never engaged because the button wasn't width-constrained.
  • Tx ResultPanel (AccountDemo): the explorer/basescan + raw-tx rows were a non-wrapping flex with a non-breaking <code>, so the hash + label ran off-screen.

Fix

  • Hero copy button → min-w-0 max-w-full (so truncate engages); label shrink-0.
  • ResultPanel rows → flex-wrap + break-all on the code; label shrink-0.
  • Same treatment applied to two other instances of the same patterns for consistency: ConfigView config-tx "landed" row, and the AppsView spending-account copy button.

Verification

  • typecheck / lint / build all pass.
  • Automated mobile visual check wasn't possible in this environment (headless browser wouldn't attach); fixes are standard min-w-0/truncate/flex-wrap/break-all container patterns. Worth a quick manual check at ~390px on the account create → hero and a completed transaction.

Long hex addresses/hashes overflowed their cards on narrow screens:

- account hero address: the copy button was w-fit, so it sized to the full
  address and defeated the code's truncate. Make it min-w-0/max-w-full so
  truncate engages; label shrink-0.
- tx ResultPanel (explorer/basescan + raw-tx rows): flex-wrap + break-all so
  the hash + label wrap instead of overflowing.
- ConfigView config-tx 'landed' row and AppsView spending-account copy button:
  same treatment (wrap/break/shrink-0) for consistency.

typecheck/lint/build pass.
@cb-heimdall

Copy link
Copy Markdown
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@vercel

vercel Bot commented Jul 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
omni-ui Ready Ready Preview, Comment Jul 23, 2026 4:59pm

Request Review

@montycheese
montycheese requested a review from mbeutt-cb July 23, 2026 17:53
@montycheese
montycheese merged commit 19d821b into main Jul 23, 2026
5 of 6 checks passed
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.

2 participants