Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #11 from SukkaW/fix-overflow
Browse files Browse the repository at this point in the history
fix: badge overflow
  • Loading branch information
Looskie authored Oct 5, 2022
2 parents 75ae53a + 1c4e05b commit 081a604
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/badge/badge.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ var badgeSVG = utils.Trim(`
<rect width="100" height="20" rx="{{border}}" fill="#fff"/>
</clipPath>
<g clip-path="url(#r)">
<rect width="69" height="20" fill="{{leftBgColor}}"/>
<rect x="69" width="31" height="20" fill="{{rightBgColor}}"/>
<rect width="38" height="20" fill="{{leftBgColor}}"/>
<rect x="38" width="62" height="20" fill="{{rightBgColor}}"/>
<rect width="{{rectWidth}}" height="20" fill="url(#s)"/>
</g>
<g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="110">
<text x="355" y="140" transform="scale(.1)" fill="{{color}}">{{label}}</text>
<text x="835" y="140" transform="scale(.1)" fill="{{color}}">{{count}}</text>
<text x="195" y="140" transform="scale(.1)" fill="{{color}}">{{label}}</text>
<text x="695" y="140" transform="scale(.1)" fill="{{color}}">{{count}}</text>
</g>
</svg>
`)
Expand Down

1 comment on commit 081a604

@vercel
Copy link

@vercel vercel bot commented on 081a604 Oct 5, 2022

Choose a reason for hiding this comment

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

Please sign in to comment.