anuraghazra / github-readme-stats

:zap: Dynamically generated stats for your github readmes
https://github-readme-stats.vercel.app
MIT License
68.17k stars 22.32k forks source link

Account name truncated. #2627

Open RokeJulianLockhart opened 1 year ago

RokeJulianLockhart commented 1 year ago

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.

ParthMovaliya commented 1 year ago

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

rickstaa commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

@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 https://github.com/anuraghazra/github-readme-stats/pull/2467.