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

fix: add icon width to stats-card min width calculation #1

Conversation

rickstaa
Copy link

@rickstaa rickstaa commented Nov 4, 2021

This pull request makes sure the icon width is also added when calculating the stats-card min width.

@rickstaa rickstaa force-pushed the include_icons_in_min_width_calculation branch from e15c761 to 4bea03c Compare November 4, 2021 10:23
@rickstaa rickstaa force-pushed the include_icons_in_min_width_calculation branch 2 times, most recently from 0a4b377 to a2cbc56 Compare November 4, 2021 16:53
This commit fixes a padding problem that was introduced in
f9c0e0b. In the new code, the padding
around the rank circle will be 50 when the stats card is bigger than
450. When it is smaller than 450 the left and right padding will shrink
equally.
@rickstaa rickstaa force-pushed the include_icons_in_min_width_calculation branch from a2cbc56 to 34d6423 Compare November 4, 2021 17:02
@postatum postatum merged commit d8b5c9d into postatum:i1170_customizable_stats_card_width Nov 8, 2021
@rickstaa rickstaa deleted the include_icons_in_min_width_calculation branch December 4, 2021 18:34
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.

2 participants