-
-
Notifications
You must be signed in to change notification settings - Fork 282
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
base: main
Are you sure you want to change the base?
fix: normalize badge height for all tool reports (#1753) #1756
Conversation
There was a problem hiding this 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.
built with Refined Cloudflare Pages Actionβ‘ Cloudflare Pages Deployment
|
Codecov ReportAll modified and coverable lines are covered by tests β
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. π New features to boost your workflow:
|
@@ -388,6 +388,7 @@ const BowtieReportBadge = ({ uri }: { uri: string }) => { | |||
className='my-1' | |||
width={100} | |||
height={20} | |||
style={{ width: 'auto', height: '20px', objectFit: 'contain' }} |
There was a problem hiding this comment.
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.
There was a problem hiding this 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 I have made the changes, thanks for your patience. |
There was a problem hiding this 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 you are welcome looking forward to making more meaningful contributions. |
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:


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.