mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-10-03 07:12:57 +00:00
fix(style): centering rank text in the circle (#1628)
This commit is contained in:
1 parent
6b61625881
commit
d7d0ba5fbd
1 file changed
+2
-2
@@ -184,8 +184,8 @@ const renderStatsCard = (stats = {}, options = { hide: [] }) => {
|
|||||||
<circle class="rank-circle" cx="-10" cy="8" r="40" />
|
<circle class="rank-circle" cx="-10" cy="8" r="40" />
|
||||||
<g class="rank-text">
|
<g class="rank-text">
|
||||||
<text
|
<text
|
||||||
x="${rank.level.length === 1 ? "-4" : "0"}"
|
x="-5"
|
||||||
y="0"
|
y="3"
|
||||||
alignment-baseline="central"
|
alignment-baseline="central"
|
||||||
dominant-baseline="central"
|
dominant-baseline="central"
|
||||||
text-anchor="middle"
|
text-anchor="middle"
|
||||||
|
|||||||
Reference in new issue
Block a user