fix(style): centering rank text in the circle (#1628)

This commit is contained in:
Shunsuke Mano 2022-03-13 06:08:00 +09:00 committed by GitHub
parent 6b61625881
commit d7d0ba5fbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -184,8 +184,8 @@ const renderStatsCard = (stats = {}, options = { hide: [] }) => {
<circle class="rank-circle" cx="-10" cy="8" r="40" />
<g class="rank-text">
<text
x="${rank.level.length === 1 ? "-4" : "0"}"
y="0"
x="-5"
y="3"
alignment-baseline="central"
dominant-baseline="central"
text-anchor="middle"