Skip to content

Bug/Avatar badge position #370

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

Merged
merged 2 commits into from
Feb 12, 2019
Merged

Bug/Avatar badge position #370

merged 2 commits into from
Feb 12, 2019

Conversation

ArnonZ
Copy link
Contributor

@ArnonZ ArnonZ commented Feb 12, 2019

Fixed badge position

const radius = size / 2;
const x = Math.sqrt(radius ** 2 * 2);
const y = x - radius;
const shift = Math.sqrt(y ** 2 / 2) - 13.5 / 2; // 13.5 = hard coded badge size
Copy link
Collaborator

Choose a reason for hiding this comment

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

Move the size of the pimple to a const at the top of the file and reuse it.
this way you don't need to add comments explaining what you're doing...

@ethanshar ethanshar merged commit ad8494f into master Feb 12, 2019
@ArnonZ ArnonZ deleted the bug/avatar-badge-location branch August 8, 2019 10:57
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