Stats card should resize when all metrics except the rank are hidden
See original GitHub issueDescribe the bug
Currently, when people hide all items except the rank on the stats card, the card is not resized:
![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&hide=contribs,prs,stars,commits,issues)
This issue was flagged in https://github.com/anuraghazra/github-readme-stats/discussions/719 @zgosalvez.
Expected behavior
The stats card should resize to show only the rank. While fixing this bug, we should also create an error when all metrics and the rank are hidden.
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (2 by maintainers)
Top Results From Across the Web
MSI Afterburner Overlay Customization Guide
The easiest way to customize MSI Afterburner overlay.
Read more >YouTube Channel Analytics: 12 Metrics You Should Be ...
Are you serious about your YouTube channel's analytics? Here are 12 metrics you should be measuring - Picmaker blog.
Read more >FAQs
All of the sizes are from the registrations. If you need to resize, we will specify a time for exchanges or have a...
Read more >Workbook Optimiser
The Workbook Optimiser is a tool that identifies whether a workbook follows certain performance best practices. These guidelines are limited to what can...
Read more >IBM SPSS Statistics 28 Brief Guide
Basic Structure of IBM SPSS Statistics Data Files. ... You can also hide all of the output from a particular statistical procedure or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks, It worked!
@Jaya-sys Yea, of course. Sorry for being unclear. This issue was flagged by @zgosalvez in https://github.com/anuraghazra/github-readme-stats/discussions/719, but I think the following was meant.
To create this card, the card size should be adjusted to
width="290", height="180"
when no stats are present. Further, the rank circle should be positioned in the middle. This can be done usingtransform="translate(165, 45)"
instead oftransform="translate(400, 25)"
on the rank SVG. Lastly, the title should change toAnurag Hazra's GitHub Rank
. I hope that helps! Feel free to ask if something is still unclear.