Skip to content

Commit 1387227

Browse files
committed
fix: add relative positioning to main containers for InteractiveMinimap
- Add 'relative' class to main elements in page.tsx, brand/page.tsx, and product/page.tsx - Fix InteractiveMinimap scroll offset calculation error - Resolve auto-scroll behavior caused by Framer Motion useScroll hook - Ensure proper container positioning for scroll-based animations - Fix console error: 'Please ensure that the container has a non-static position'
1 parent ee73cb2 commit 1387227

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/app/brand/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function BrandPage() {
1818
];
1919

2020
return (
21-
<main className="min-h-screen">
21+
<main className="min-h-screen relative">
2222
<Header />
2323

2424
<SectionNavigation sections={sections} />

src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default function Home() {
2626
];
2727

2828
return (
29-
<main className="min-h-screen">
29+
<main className="min-h-screen relative">
3030
<InteractiveMinimap />
3131
<Header />
3232
<SectionNavigation sections={sections} />

src/app/product/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function ProductPage() {
1919
];
2020

2121
return (
22-
<main className="min-h-screen">
22+
<main className="min-h-screen relative">
2323
<Header />
2424

2525
<SectionNavigation sections={sections} />

0 commit comments

Comments
 (0)