fix(plugins/followup): possible negative width values [skip ci]
This commit is contained in:
@@ -102,7 +102,7 @@
|
||||
{p:(merged-collaborators.merged)/count, fill:"#8957e5"},
|
||||
{p:collaborators.merged/count, fill:"#d2a8ff"},
|
||||
]) { %>
|
||||
<rect mask="url(#issues-bar)" x="<%= x %>" y="0" width="<%= p*width || 0 %>" height="8" fill="<%= fill %>"/>
|
||||
<rect mask="url(#issues-bar)" x="<%= x %>" y="0" width="<%= Math.max(p*width || 0, 0) %>" height="8" fill="<%= fill %>"/>
|
||||
<% x += p*width }} %>
|
||||
</svg>
|
||||
<% if ((plugins.followup.indepth)&&(section.pr.collaborators)) { %>
|
||||
|
||||
Reference in New Issue
Block a user