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}
|
||||
width={(1 - player.rank / maxValue) * width}
|
||||
height={barHeight - 8} // subtract 2 for some spacing between bars
|
||||
fontSize="24px"
|
||||
fontSize={`${barHeight - 1.5 * gap}px`}
|
||||
fill="aliceblue"
|
||||
stroke='#36c'
|
||||
strokeWidth={0.8}
|
||||
strokeWidth={1.6}
|
||||
fontWeight={"bold"}
|
||||
paintOrder={"stroke fill"}
|
||||
>{player.name}</text>
|
||||
))}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user