Skip to content

Commit

Permalink
Cambios de visualizado
Browse files Browse the repository at this point in the history
  • Loading branch information
uo289792 committed Apr 28, 2024
1 parent 1c2a478 commit cb7197a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion webapp/src/components/Ranking.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -80,7 +81,10 @@ const Ranking = () => {

return (
<CustomContainer>
<Box border={2} borderColor="black" p={3} borderRadius={8} bgcolor="#EE6D72" mb={5}>
<Box border={2} borderColor="black" p={3} borderRadius={8} bgcolor="#EE6D72" mb={5}
style={{
marginTop: isMobile ? '100px' : '100px',
}}>
<Typography variant="h5" align="center" style={{ color: 'white', fontWeight: 'bold', marginBottom: '16px' }}>
{t("textoTop")}
</Typography>
Expand Down

0 comments on commit cb7197a

Please sign in to comment.