fix: bar height
This commit is contained in:
parent
195d240a87
commit
fc8592f8ab
@ -16,7 +16,7 @@ const determineNiceWidth = (width: number) => {
|
|||||||
const RaceChart: FC<RaceChartProps> = ({ players, std }) => {
|
const RaceChart: FC<RaceChartProps> = ({ players, std }) => {
|
||||||
const [width, setWidth] = useState(determineNiceWidth(window.innerWidth));
|
const [width, setWidth] = useState(determineNiceWidth(window.innerWidth));
|
||||||
//const [height, setHeight] = useState(window.innerHeight);
|
//const [height, setHeight] = useState(window.innerHeight);
|
||||||
const height = Math.max(3, players.length) * 40;
|
const height = (players.length + 1) * 40;
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const handleResize = () => {
|
const handleResize = () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user