Center badge text vertically
Rust CI vsg_bridge_ls passed CI.
MadGobblins/vsg-bridge-ls/pipeline/head This commit looks good Details

This commit is contained in:
Dandaedre 2026-10-03 00:19:08 +02:00
parent 4d78f5e6cf
commit 5e5a71e39f
Signed by: Dandaedre
GPG Key ID: 440C6592E8A26D99
3 changed files with 9 additions and 9 deletions

View File

@ -58,9 +58,9 @@ sed \
<rect x="75" width="37" height="20" fill="@COLOR@"/>
<rect width="112" height="20" fill="url(#s)"/>
</g>
<g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11">
<text x="37.5" y="15">coverage</text>
<text x="93.5" y="15">@PERCENT@%</text>
<g fill="#fff" text-anchor="middle" dominant-baseline="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11">
<text x="37.5" y="10">coverage</text>
<text x="93.5" y="10">@PERCENT@%</text>
</g>
</svg>
EOF

View File

@ -45,9 +45,9 @@ sed \
<rect x="45" width="55" height="20" fill="@COLOR@"/>
<rect width="100" height="20" fill="url(#s)"/>
</g>
<g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11">
<text x="22.5" y="15">tests</text>
<text x="72.5" y="15">@STATUS@</text>
<g fill="#fff" text-anchor="middle" dominant-baseline="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11">
<text x="22.5" y="10">tests</text>
<text x="72.5" y="10">@STATUS@</text>
</g>
</svg>
EOF

View File

@ -54,9 +54,9 @@ sed \
<rect x="59" width="@VALUE_WIDTH@" height="20" fill="#007ec6"/>
<rect width="@BADGE_WIDTH@" height="20" fill="url(#s)"/>
</g>
<g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11">
<text x="29.5" y="15">version</text>
<text x="@VALUE_CENTER@" y="15">@VERSION@</text>
<g fill="#fff" text-anchor="middle" dominant-baseline="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11">
<text x="29.5" y="10">version</text>
<text x="@VALUE_CENTER@" y="10">@VERSION@</text>
</g>
</svg>
EOF