Skip to content

Commit b3b1785

Browse files
committed
wip
1 parent b296ac2 commit b3b1785

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/actions/gitcoverage/action.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ runs:
163163
WIDTH=$((LEFT_W + RIGHT_W))
164164
165165
LABEL_X=$(( LEFT_W / 2 ))
166+
LABEL_SHADOW_X=$(( LABEL_X + 1 ))
166167
VALUE_X=$(( LEFT_W + RIGHT_W / 2 ))
168+
VALUE_X_SHADOW=$(( VALUE_X + 1 ))
167169
168170
# --- 4) Emit SVG ---
169171
SVG="$(cat <<EOF
@@ -179,10 +181,10 @@ runs:
179181
<rect width="${WIDTH}" height="20" fill="url(#s)"/>
180182
</g>
181183
<g fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="11">
182-
<text x="${LABEL_X}+5" y="16" textLength="503" fill="#000" opacity="0.25">${LABEL}</text>
183-
<text x="${LABEL_X}-5" y="15" textLength="503">${LABEL}</text>
184-
<text x="${VALUE_X}+5" y="16" fill="#000" opacity="0.25">${VALUE}</text>
185-
<text x="${VALUE_X}-5" y="15">${VALUE}</text>
184+
<text x="${LABEL_X_SHADOW}" y="16" fill="#000" opacity="0.25">${LABEL}</text>
185+
<text x="${LABEL_X}" y="15">${LABEL}</text>
186+
<text x="${VALUE_X_SHADOW}" y="16" fill="#000" opacity="0.25">${VALUE}</text>
187+
<text x="${VALUE_X}" y="15">${VALUE}</text>
186188
</g>
187189
</svg>
188190
EOF

0 commit comments

Comments
 (0)