github-readme-stats icon indicating copy to clipboard operation
github-readme-stats copied to clipboard

Add card_width for stats Card repo cards

Open trackmasters opened this issue 4 years ago • 5 comments

Is your feature request related to a problem? Please describe. The GitHub Stats Card is too wide and I cannot fit two panels in my README.md.

Describe the solution you'd like Allow customizing the width of GitHub Stats Card like it is allowed for the Language Card using card_width.

Describe alternatives you've considered Make the GitHub Stats Card smaller (width) might be also a solution.

Additional context Current look:

Requested feature: I would like to achieve something like this (edited in MS Paint):

Note: This is my 2nd attempt (the 1st one is here) to draw attention and get feedback as one of my feature requests remained inactive despite the overall activity in the issues section.

trackmasters avatar Jul 04 '21 13:07 trackmasters

Hey @trackmasters thanks for requesting this feature. sorry I totally missed your issue, I believe there was some similar issues too which got unnoticed.

I'll take a look on how we can do this without making things overlap each other.

anuraghazra avatar Jul 04 '21 13:07 anuraghazra

@trackmasters You can write your code like this:

<p align="center">
<img height="180em" src="https://github-readme-stats.vercel.app/api?username=usernamecount_private=true&show_icons=true" align = "center"/>
<img height="180em" src="https://github-readme-stats.vercel.app/api/top-langs?username=username&show_icons=true&locale=en&layout=compact" align = "center"/>
</p>

simran2104 avatar Jul 21 '21 06:07 simran2104

@simran2104 Thanks a lot for the workaround!

rickstaa avatar Nov 04 '21 09:11 rickstaa

#1334 created by @postatum adds this feature.

rickstaa avatar Nov 04 '21 10:11 rickstaa

Related to #1051

rickstaa avatar Mar 09 '22 07:03 rickstaa

@simran2104, that method (height="{value}em") forces the card to ignore things like the browser text scale, since it scales the output entirely. Is there no way for multiple cards to negotiate their size?

RokeJulianLockhart avatar Apr 21 '23 14:04 RokeJulianLockhart