diff --git a/webapp/src/components/Ranking.js b/webapp/src/components/Ranking.js index 3f7323b4..81182471 100644 --- a/webapp/src/components/Ranking.js +++ b/webapp/src/components/Ranking.js @@ -31,6 +31,7 @@ const Ranking = () => { const [rankingTable, setRankingTable] = useState([]); const [sortBy, setSortBy] = useState('ratio'); const [userLimit, setUserLimit] = useState(10); + const isMobile = window.innerWidth <= 768; const getRanking = useCallback(async () => { try { @@ -80,7 +81,10 @@ const Ranking = () => { return ( - + {t("textoTop")}