Skip to content

Commit

Permalink
Ajuste de scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusalefe committed Nov 22, 2024
1 parent 67b0e92 commit 1c2f201
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function Footer() {
setIdEquipe(document.getElementById("A_EQUIPE")?.offsetTop)
setIdMembros(document.getElementById("MEMBROS")?.offsetTop)
setIdApoio(document.getElementById("APOIO")?.offsetTop)
setOffset( window.innerHeight < window.innerWidth? window.innerWidth/96: -window.innerWidth/12)
setOffset( window.innerHeight < window.innerWidth? window.innerWidth/48: window.innerWidth/20)
}, []);

return (
Expand Down
2 changes: 1 addition & 1 deletion src/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function Header({menuStatus, setMenuStatus}: HeaderProps){
setIdEquipe(document.getElementById("A_EQUIPE")?.offsetTop)
setIdMembros(document.getElementById("MEMBROS")?.offsetTop)
setIdApoio(document.getElementById("APOIO")?.offsetTop)
setOffset( window.innerHeight < window.innerWidth? window.innerWidth/96: -window.innerWidth/48)
setOffset( window.innerHeight < window.innerWidth? window.innerWidth/48: window.innerWidth/20)
}, []);
return (
<header className={styles.header}>
Expand Down

0 comments on commit 1c2f201

Please sign in to comment.