Skip to content

Fix overflow/truncation for long strings across transaction screens #904

Description

@CassioMG

Surfaced during #879 (Swap to new token) but kept out of scope to keep that PR shorter.

Several screens overflow or truncate awkwardly when the token code is long or when the exchange rate has many digits.

Affected surfaces

  • History details (HistoryScreen/TransactionDetailsContent.tsx)
  • Transaction details (the shared details sheet used across Send/Swap/WalletConnect)
  • Transaction review screens (Send review, Swap review)

What to do

  • Check if we have the same issue on extension. If not, check the solution we are using there.
  • Audit each affected screen for fixed-width text containers and side-by-side rows that can collide.
  • Decide per-row how to handle overflow. e.g.: numberOfLines={1} + ellipsizeMode (tail / middle), wrap to a second line, or shrink-to-fit (adjustsFontSizeToFit where appropriate).
  • Add visual regression coverage with a long-token-code fixture so this doesn't regress.

Repro

Easiest repro is to swap or send a token with a 12-char asset code, or to swap with an exchange rate that renders many digits (e.g. tiny-fraction tokens).

Screenshot 2026-06-09 at 22 28 52 Screenshot 2026-06-09 at 22 28 05 Screenshot 2026-06-09 at 22 29 14 Screenshot 2026-06-09 at 22 29 32

Metadata

Metadata

Assignees

No one assigned

    Labels

    designneeds mockups

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions