question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stats card should resize when all metrics except the rank are hidden

See original GitHub issue

Describe 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)

Anurag's GitHub stats

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.

image

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dmdhrumilmistrycommented, Jun 10, 2022

Thanks, It worked!

0reactions
rickstaacommented, Oct 27, 2022

@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.

image

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 using transform="translate(165, 45)" instead of transform="translate(400, 25)" on the rank SVG. Lastly, the title should change to Anurag Hazra's GitHub Rank. I hope that helps! Feel free to ask if something is still unclear.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found