Skip to content

Commit

Permalink
fix bug with scroll snap adding visual padding right
Browse files Browse the repository at this point in the history
  • Loading branch information
kimmykokonut committed Nov 5, 2024
1 parent a078300 commit 42cfd5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ html {
.container {
scroll-snap-type: y mandatory;
overflow-y: scroll;
padding: 0;
margin: 0;
}

#home,
#about,
#projects,
#skills,
#contact {
scroll-snap-align: start;
}
Expand Down
2 changes: 1 addition & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Contact from "./contact/page";
export default function Home() {
return (
<main className="flex min-h-screen flex-col bg-[#f2f3f4] dark:bg-[#1e1e1e] mx-auto px-12 py-4">
<div className="container mt-24 mx-auto">
<div className="container mt-24 mx-auto overflow-hidden">
<Hero />
<About />
<Projects />
Expand Down

0 comments on commit 42cfd5a

Please sign in to comment.