Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add corner rounding parameter so we can make square cards #845

Merged
merged 2 commits into from
Mar 7, 2021

Conversation

tsheinen
Copy link
Contributor

Cards are rounded by default which looks kinda ugly when you have two adjacent cards with a dark theme and a light background. I added support for a parameter which allows users to control the rounding used by the card (and had it default to the original 4.5). I added implementation, tests, and readme docs but feel free to ping me if I missed anything.

image

@vercel
Copy link

vercel bot commented Jan 29, 2021

@tcheinen is attempting to deploy a commit to the github readme stats Team on Vercel.

A member of the Team first needs to authorize it.

@codecov
Copy link

codecov bot commented Jan 29, 2021

Codecov Report

Merging #845 (3fdd054) into master (15afa65) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #845      +/-   ##
==========================================
+ Coverage   93.96%   93.97%   +0.01%     
==========================================
  Files          22       22              
  Lines         679      681       +2     
  Branches      189      190       +1     
==========================================
+ Hits          638      640       +2     
  Misses         37       37              
  Partials        4        4              
Impacted Files Coverage Δ
api/index.js 90.47% <ø> (ø)
api/pin.js 88.88% <ø> (ø)
api/top-langs.js 90.47% <ø> (ø)
src/cards/repo-card.js 100.00% <ø> (ø)
src/cards/stats-card.js 100.00% <ø> (ø)
src/cards/top-languages-card.js 100.00% <ø> (ø)
src/cards/wakatime-card.js 98.50% <ø> (ø)
src/common/Card.js 94.91% <100.00%> (+0.17%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 15afa65...3fdd054. Read the comment docs.

Copy link
Contributor

@filiptronicek filiptronicek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks for the contribution, @tcheinen, I just have one thing that I think could be tweaked. As you can see here, all the parameters are pretty memorable and easily self-explainable. I think it would be better to name it something like border_radius or rounding.

@tsheinen
Copy link
Contributor Author

tsheinen commented Feb 8, 2021

makes sense! I renamed it to border_radius

Copy link
Contributor

@filiptronicek filiptronicek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅

@anuraghazra
Copy link
Owner

This looks great @tcheinen sorry for the delay.

@anuraghazra anuraghazra merged commit c8a5e83 into anuraghazra:master Mar 7, 2021
qwerty541 pushed a commit to qwerty541/github-readme-stats that referenced this pull request Mar 7, 2021
…aghazra#845)

* add corner rounding parameter so i can make square cards

* rename rx to border_radius
Kab1r pushed a commit to Kab1r/github-readme-stats that referenced this pull request Apr 4, 2022
…aghazra#845)

* add corner rounding parameter so i can make square cards

* rename rx to border_radius
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants