fix: text stroke

This commit is contained in:
julius 2025-02-24 18:17:53 +01:00
parent 5c21cf1fc3
commit f94c3402c2
Signed by: julius
GPG Key ID: C80A63E6A5FD7092

View File

@ -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>
))}