Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wallet Receive: Update address formatting #5313

Merged
merged 2 commits into from Sep 19, 2023

Conversation

dennisreimann
Copy link
Member

Closes #5311.

Before

before

After

after

@NicolasDorier
Copy link
Member

Checking if I can't fix this small gap

image

@NicolasDorier
Copy link
Member

NicolasDorier commented Sep 12, 2023

What do you think of instead just truncating exactly the number of characters, and use a <span>...</span> rather than CSS ellipsis?
The ellipsis not being in the middle feel a bit weird.

@dennisreimann
Copy link
Member Author

It is done this way to handle flexible width scenarios. Imho it's good enough and solves the problem – we're using this in most places for a while now and no one complained. 😀

@dstrukt dstrukt self-requested a review September 13, 2023 22:52
Copy link
Member

@dstrukt dstrukt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK - LGTM!

Agree with @NicolasDorier on the minor nit of removing the extra space.

@NicolasDorier NicolasDorier merged commit f034e2c into btcpayserver:master Sep 19, 2023
4 checks passed
@dennisreimann dennisreimann deleted the fix-5311 branch September 19, 2023 05:04
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.

UX: Address formatting shouldn't truncate the end of the address
4 participants