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

Bug Fix: Decreased border radius of badge and changed badge parent div padding to margin #7835

Merged

Conversation

AndrewHamal
Copy link
Contributor

What does this PR do?

Decreased the border-radius of the badge and changed the padding-top and padding-bottom of the badge parent div to margin-top and margin-bottom

Fixes #7811

Screenshot 2024-10-19 at 12 27 49 AM Screenshot 2024-10-19 at 12 28 37 AM

How should this be tested?

Create any task, notes, or files.

…nd padding-bottom of badge parent to margin-top and margin-bottom
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This pull request addresses a visual inconsistency in the timeline component's badge sizing when only one item is present.

  • Modified StyledActivityGroupBar in EventsGroup.tsx to reduce border radius from 50% to 20px
  • Changed padding-top and padding-bottom to margin-top and margin-bottom in StyledActivityGroupContainer
  • Adjustments aim to create a more square-shaped badge that aligns better with adjacent text
  • Changes are purely cosmetic and do not affect component functionality
  • Improvements directly address the concerns raised in issue Sizing of badge isn't good when single timeline #7811

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@ehconitin ehconitin self-assigned this Oct 19, 2024
Copy link
Contributor

@ehconitin ehconitin left a comment

Choose a reason for hiding this comment

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

LGTM!
Thanks for contributing @AndrewHamal! I removed the unnecessary margins.
Also, I pushed a separate, unrelated bug fix. ;)

Update: We do need margins at the top and bottom after all. I checked Figma, and it's 12px instead of 8px. :)

@FelixMalfait FelixMalfait merged commit 8368f14 into twentyhq:main Oct 19, 2024
11 checks passed
Copy link

oss-gg bot commented Oct 19, 2024

Awarding AndrewHamal: 150 points 🕹️ Well done! Check out your new contribution on oss.gg/AndrewHamal

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.

Sizing of badge isn't good when single timeline
3 participants