Skip to content

Commit

Permalink
fix(style): centering rank text in the circle (anuraghazra#1628)
Browse files Browse the repository at this point in the history
  • Loading branch information
progfay authored Mar 12, 2022
1 parent 6b61625 commit d7d0ba5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cards/stats-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d7d0ba5

Please sign in to comment.