fix: text stroke
This commit is contained in:
parent
5c21cf1fc3
commit
f94c3402c2
@ -57,11 +57,12 @@ const RaceChart: FC<RaceChartProps> = ({ players, std }) => {
|
|||||||
y={index * barHeight + barHeight / 2 + padding + gap / 2}
|
y={index * barHeight + barHeight / 2 + padding + gap / 2}
|
||||||
width={(1 - player.rank / maxValue) * width}
|
width={(1 - player.rank / maxValue) * width}
|
||||||
height={barHeight - 8} // subtract 2 for some spacing between bars
|
height={barHeight - 8} // subtract 2 for some spacing between bars
|
||||||
fontSize="24px"
|
fontSize={`${barHeight - 1.5 * gap}px`}
|
||||||
fill="aliceblue"
|
fill="aliceblue"
|
||||||
stroke='#36c'
|
stroke='#36c'
|
||||||
strokeWidth={0.8}
|
strokeWidth={1.6}
|
||||||
fontWeight={"bold"}
|
fontWeight={"bold"}
|
||||||
|
paintOrder={"stroke fill"}
|
||||||
>{player.name}</text>
|
>{player.name}</text>
|
||||||
))}
|
))}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user