Skip to content

Commit 3187139

Browse files
authored
fix: sticky header scroll issue (JhaSourav07#771)
## Description Fixes JhaSourav07#762 ## Pillar - [ ] 🎨 Pillar 1 β€” New Theme Design - [ ] πŸ“ Pillar 2 β€” Geometric SVG Improvement - [ ] πŸ• Pillar 3 β€” Timezone Logic Optimization - [ ] πŸ› οΈ Other (Bug fix, refactoring, docs) ## Visual Preview ## Checklist before requesting a review: - [ ] I have read the `CONTRIBUTING.md` file. - [ ] I have tested these changes locally (`localhost:3000/api/streak?user=YOUR_USERNAME`). - [ ] I have run `npm run format` and `npm run lint` locally and resolved all errors (CI will fail otherwise). - [ ] My commits follow the Conventional Commits format (e.g., `feat(themes): ...`, `fix(calculate): ...`). - [ ] I have updated `README.md` if I added a new theme or URL parameter. - [ ] I have started the repo. - [ ] I have made sure that i have only one commit to merge in this PR. - [ ] The SVG output matches the CommitPulse "premium quality" aesthetic standard (no raw elements, smooth animations, correct fonts). - [ ] (Recommended) I joined the CommitPulse Discord community for contributor discussions, mentorship, and faster PR support.
2 parents e02de70 + c10846e commit 3187139

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

β€Žapp/components/navbar.tsxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default function Navbar() {
7272
};
7373

7474
return (
75-
<header className="fixed inset-x-0 top-0 z-50 px-4 pt-4 sm:px-6">
75+
<header className="relative z-50 px-4 pt-4 sm:px-6 w-full">
7676
<div className="mx-auto max-w-6xl">
7777
<div
7878
ref={shellRef}

β€Žapp/layout.tsxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
6969
<body className={`${inter.className} bg-black`}>
7070
<BrandParticles />
7171
<Navbar />
72-
<div className="pt-24 sm:pt-28 relative z-10">{children}</div>
72+
<div className="relative z-10">{children}</div>
7373
<ReturnToTop />
7474
<Analytics />
7575
</body>

0 commit comments

Comments
Β (0)