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

Account name truncated. #2627

Open
RokeJulianLockhart opened this issue Apr 21, 2023 · 4 comments
Open

Account name truncated. #2627

RokeJulianLockhart opened this issue Apr 21, 2023 · 4 comments
Assignees
Labels
bug Something isn't working.

Comments

@RokeJulianLockhart
Copy link

RokeJulianLockhart commented Apr 21, 2023

Describe the bug

The statistics card doesn't automatically adapt its width to display my name, nor does it wrap the text when unable to.

Expected behaviour

The entirety of the name should be presented by:

  1. extending the width of the card;
  2. wrapping the text (if that's not wide enough); and
  3. not displaying the name if there's not enough space on the screen (although improbable).

Screenshots / Live demo link

Additional context

Apologies for the broken issue layout. Don't know how to fix that yet.

@RokeJulianLockhart RokeJulianLockhart added the bug Something isn't working. label Apr 21, 2023
@ParthMovaliya
Copy link

can I work on this issue or is anyone working on it?

@rickstaa
Copy link
Collaborator

rickstaa commented Apr 24, 2023

can I work on this issue or is anyone working on it?

@ParthMovaliya I assigned you to this issue. If you create a PR, I am happy to take a look 👍🏻. Please check out the CONTRIBUTING.md guidelines on how to test this project locally.

Anurag's GitHub stats

[![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=rokejulianlockhart)](https://github.com/anuraghazra/github-readme-stats)

@anuraghazra
Copy link
Owner

@ParthMovaliya whenever you implement this 1 thing to consider:

Just doing simple title.length > 10 ? truncate(title) : title might not work since if the title uses different locale like chinese it will cut the string too early.

@rickstaa
Copy link
Collaborator

rickstaa commented Jul 3, 2023

@ParthMovaliya whenever you implement this 1 thing to consider:

Just doing simple title.length > 10 ? truncate(title) : title might not work since if the title uses different locale like chinese it will cut the string too early.

To see this problem in action please check #2467.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

4 participants