diff --git a/src/RaceChart.tsx b/src/RaceChart.tsx index 5d85745..2b87515 100644 --- a/src/RaceChart.tsx +++ b/src/RaceChart.tsx @@ -16,7 +16,7 @@ const determineNiceWidth = (width: number) => { const RaceChart: FC = ({ players, std }) => { const [width, setWidth] = useState(determineNiceWidth(window.innerWidth)); //const [height, setHeight] = useState(window.innerHeight); - const height = Math.max(3, players.length) * 40; + const height = (players.length + 1) * 40; useEffect(() => { const handleResize = () => {