sudiptob2 / cf-stats

A github action based realtime Codeforces activity statistics card and badge generator for github readme
GNU General Public License v3.0
207 stars 41 forks source link

Rank too long (legendary grandmaster) breaks the card. #43

Open sudiptob2 opened 2 years ago

sudiptob2 commented 2 years ago

Long rank such as legendary grandmaster breaks the card :thinking: I hope a legendary grandmaster will fix this bug :pray: image

iamrubayet commented 2 years ago

if we increase the fixed size will this solve the bug ?

iamrubayet commented 2 years ago

or we can use slice like we use in long user name ?

sudiptob2 commented 2 years ago

I don't want to change the card size; it's pretty standard. On the other hand, slicing will not solve the problem because rank is like a designation of a codeforces user. If we slice legendary grandmaster it will become grandmaster which is something totally different.

I think we can use Acronym.acronimize() take the acronym of the rank if the length of rank exceeds some predefined length. In this case, the legendary grandmaster will be converted into LG.

Ria-R commented 2 years ago

Hello, can I be assigned this issue?

TOMWT-qwq commented 10 months ago

Not only lgm is too long. This issue is not completely solved.

sudiptob2 commented 10 months ago

@TOMWT-qwq I think now it's time to solve this issue 😀