Skip to content

Commit

Permalink
fix: replace dominat baseline to dy (DimensionDev#5626)
Browse files Browse the repository at this point in the history
  • Loading branch information
albert-0229 authored Feb 9, 2022
1 parent 2b7aa26 commit 0b9918e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/mask/src/plugins/Avatar/SNSAdaptor/NFTAvatarRing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,8 @@ export function NFTAvatarRing(props: NFTAvatarRingProps) {
</text>

<text x="0%" textAnchor="middle" fill={`url(#${id}-pattern)`} fontFamily="sans-serif">
<textPath
xlinkHref={`#${id}-path-price`}
startOffset="50%"
rotate="auto"
dominantBaseline="mathematical">
<tspan fontWeight="bold" fontSize={fontSize}>
<textPath xlinkHref={`#${id}-path-price`} startOffset="50%" rotate="auto">
<tspan fontWeight="bold" fontSize={fontSize} dy="0.5em">
{price}
</tspan>
</textPath>
Expand Down

0 comments on commit 0b9918e

Please sign in to comment.