Uniswap / Uniswap/interface

UI: long swap output value causes elements to overflow container

Open
#4,992 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
5.5k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Bug Description
When typing a long number into the swap 'output' input it causes its parent container to expand outside of the swap container. It looks like the problem is with the converted fiat number not having an x overflow.

Steps to Reproduce

  1. Go to the app interface
  2. Select an output token
  3. Type a really long and big number and keep going until the converted fiat value starts expanding beyond its max width

Expected Behavior
I would expect the fiat value to be horizontally scrollable, or go into scientific format, or be truncated.

Additional Context
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the app interface at the swap output input and reproduce the issue by entering a very long number. Inspect how the converted fiat value is constrained within its parent container; done when long values no longer expand the swap container and the resulting display follows an agreed scroll, scientific-format, or truncation behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.