Skip to content

Commit d7d0ba5

Browse files
authored
fix(style): centering rank text in the circle (#1628)
1 parent 6b61625 commit d7d0ba5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cards/stats-card.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ const renderStatsCard = (stats = {}, options = { hide: [] }) => {
184184
<circle class="rank-circle" cx="-10" cy="8" r="40" />
185185
<g class="rank-text">
186186
<text
187-
x="${rank.level.length === 1 ? "-4" : "0"}"
188-
y="0"
187+
x="-5"
188+
y="3"
189189
alignment-baseline="central"
190190
dominant-baseline="central"
191191
text-anchor="middle"

0 commit comments

Comments
 (0)