fix: bar height
This commit is contained in:
@@ -16,7 +16,7 @@ const determineNiceWidth = (width: number) => {
|
||||
const RaceChart: FC<RaceChartProps> = ({ 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 = () => {
|
||||
|
Reference in New Issue
Block a user