From f94c3402c2072396ce577fa587dbdabd3f7eb5f7 Mon Sep 17 00:00:00 2001 From: julius Date: Mon, 24 Feb 2025 18:17:53 +0100 Subject: [PATCH] fix: text stroke --- src/RaceChart.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/RaceChart.tsx b/src/RaceChart.tsx index c9ae49a..60813d7 100644 --- a/src/RaceChart.tsx +++ b/src/RaceChart.tsx @@ -57,11 +57,12 @@ const RaceChart: FC = ({ 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} ))}