Skip to content

Commit f336219

Browse files
committed
fix: profile button text not centralized
1 parent 0357999 commit f336219

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/services/profile-menu.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ define(function (require, exports, module) {
1313

1414
function _createSVGIcon(initials, bgColor) {
1515
return `<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
16-
<circle cx="12" cy="12" r="10" fill="${bgColor}"/>
17-
<text x="50%" y="58%" text-anchor="middle" font-size="11" fill="#fff" font-family="Inter, sans-serif" dy=".1em">
18-
${initials}</text>
16+
<circle cx="12" cy="12" r="10" fill="${bgColor}"/>
17+
<text x="12" y="12" text-anchor="middle" dominant-baseline="central" font-size="10" fill="#fff" font-family="Inter, sans-serif">
18+
${initials}</text>
1919
</svg>`;
2020
}
2121

0 commit comments

Comments
 (0)