diff --git a/src/components/ScrollToTop.tsx b/src/components/ScrollToTop.tsx index af39833..3d4ce30 100644 --- a/src/components/ScrollToTop.tsx +++ b/src/components/ScrollToTop.tsx @@ -11,12 +11,12 @@ import { useLocation } from "react-router-dom"; * anchor / deep-link targets keep their own scroll handling. */ export function ScrollToTop() { - const { pathname, hash } = useLocation(); + const { pathname, search, hash } = useLocation(); useEffect(() => { if (hash) return; window.scrollTo({ top: 0, left: 0 }); - }, [pathname, hash]); + }, [pathname, search, hash]); return null; } diff --git a/src/layouts/PublicLayout.tsx b/src/layouts/PublicLayout.tsx index ae96daa..76b0edb 100644 --- a/src/layouts/PublicLayout.tsx +++ b/src/layouts/PublicLayout.tsx @@ -669,7 +669,7 @@ export function PublicLayout() { - + {pathname === "/browse" ? : null} ); } diff --git a/src/motion/variants.ts b/src/motion/variants.ts index 002636a..34d641f 100644 --- a/src/motion/variants.ts +++ b/src/motion/variants.ts @@ -5,7 +5,7 @@ export const EASE_OUT = [0.22, 1, 0.36, 1] as const; /** Base transition for reveal-style animations. */ export const baseTransition: Transition = { - duration: 0.4, + duration: 0.25, ease: EASE_OUT, };