Repository navigation
explorer: Keep both parties whole beside the largest amounts on phones - #342
Merged
Merged
Conversation
At 320 px, an amount of 14 characters or more left the receiver's line too short for its address, which ended "271z…M…", and the largest amounts, near the 1,000,000,000 DUSK supply, cut the sender too: no layout fits a 4…4 address, its arrow and "−999,999,999.9999 DUSK" side by side in a 320 px row. The row now wraps: its parties are never narrower than the widest of them, whole, and when the amount can't sit beside them, it goes under them with its time, still at the right. A name keeps to 17 characters, as before. Rows that fit don't change: the first page of mainnet transactions renders the same, to the pixel, at 320, 360, 390 and 768 px.
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.
What changed
On a 320 px phone, a transaction row with an amount of 14 characters or more left too little room for its parties. The receiver's address ended "271z…M…", and the largest amounts, near the 1,000,000,000 DUSK supply, cut the sender too. No layout fits a 4…4 address, its arrow and "−999,999,999.9999 DUSK" side by side in 320 px.
The row now wraps. Its parties are never narrower than the widest of them, whole, and when the amount can't sit beside them it goes under them with its time, still at the right. A name keeps its 17-character cap, now set without a share of the row, so the row can size itself to it.
How it was checked
npm audit signatures, format, lint, typecheck, 415 tests and the build.