Skip to content

fix: normalize badge height for all tool reports (#1753) #1756

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

animeshsahoo1
Copy link

What kind of change does this PR introduce?

A bugfix β€” it ensures that all dynamically generated badge images render at a consistent height/size.

Issue Number:

Screenshots/videos:
large devices
small devices

If relevant, did you update the documentation?
NO

Summary
The issue was to make all the badges of same height, first I tried to see if there's any way to fix the size of badges by changing
shield.io endpoint URL by adding certain queries, as it was not possible to do so written in their QnA in github, i manually added styles to the image to keep the height same for all badges

Does this PR introduce a breaking change?
NO

Checklist

Please ensure the following tasks are completed before submitting this pull request.

@animeshsahoo1 animeshsahoo1 requested a review from a team as a code owner July 4, 2025 11:50
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome to the JSON Schema Community. Thanks a lot for creating your first pull request!! πŸŽ‰πŸŽ‰ We are so excited you are here! We hope this is only the first of many! For more details check out README.md file.

Copy link

github-actions bot commented Jul 4, 2025

built with Refined Cloudflare Pages Action

⚑ Cloudflare Pages Deployment

Name Status Preview Last Commit
website βœ… Ready (View Log) Visit Preview 5d5fe6e

Copy link

codecov bot commented Jul 4, 2025

Codecov Report

All modified and coverable lines are covered by tests βœ…

Project coverage is 100.00%. Comparing base (d585a99) to head (5d5fe6e).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1756   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           29        29           
  Lines          548       548           
  Branches       158       158           
=========================================
  Hits           548       548           

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • πŸ“¦ JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@@ -388,6 +388,7 @@ const BowtieReportBadge = ({ uri }: { uri: string }) => {
className='my-1'
width={100}
height={20}
style={{ width: 'auto', height: '20px', objectFit: 'contain' }}
Copy link
Member

Choose a reason for hiding this comment

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

Hey @animeshsahoo1 , your approach is fine, but since we are using TailwindCSS in our codebase, so I think this issue can be fixed with a single change in the TailwindCSS classes.
I'd suggest instead of adding full CSS style tag, just add a 'w-auto h-[20px]' in the Tailwind class and the issue will get fixed.

Copy link
Member

@Utkarsh-123github Utkarsh-123github left a comment

Choose a reason for hiding this comment

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

Hey @animeshsahoo1 , I have reviewed and suggested some changes in your PR. Please have a look over it and make the appropriate changes.
Thank You!πŸš€

@Utkarsh-123github Utkarsh-123github moved this to Ready to review in PR - Triage Group Jul 5, 2025
@Utkarsh-123github Utkarsh-123github moved this from Ready to review to Changes requested in PR - Triage Group Jul 5, 2025
@animeshsahoo1
Copy link
Author

@Utkarsh-123github I have made the changes, thanks for your patience.

@Utkarsh-123github Utkarsh-123github self-requested a review July 5, 2025 07:17
Copy link
Member

@Utkarsh-123github Utkarsh-123github left a comment

Choose a reason for hiding this comment

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

Thank you @animeshsahoo1 for making the changes.
LGTMπŸš€

@Utkarsh-123github Utkarsh-123github moved this from Changes requested to Waiting for others to Review in PR - Triage Group Jul 5, 2025
@animeshsahoo1
Copy link
Author

@Utkarsh-123github you are welcome looking forward to making more meaningful contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Waiting for others to Review
Development

Successfully merging this pull request may close these issues.

πŸ› Bug: Tool badges on modal have different sizes
2 participants