terry-staging #8

Merged
terry merged 7 commits from terry-staging into main 2026-05-29 08:40:53 +00:00
3 changed files with 4 additions and 4 deletions
Showing only changes of commit 4f6b4a498f - Show all commits

View File

@@ -11,12 +11,12 @@ import { useLocation } from "react-router-dom";
* anchor / deep-link targets keep their own scroll handling. * anchor / deep-link targets keep their own scroll handling.
*/ */
export function ScrollToTop() { export function ScrollToTop() {
const { pathname, hash } = useLocation(); const { pathname, search, hash } = useLocation();
useEffect(() => { useEffect(() => {
if (hash) return; if (hash) return;
window.scrollTo({ top: 0, left: 0 }); window.scrollTo({ top: 0, left: 0 });
}, [pathname, hash]); }, [pathname, search, hash]);
return null; return null;
} }

View File

@@ -669,7 +669,7 @@ export function PublicLayout() {
</div> </div>
</nav> </nav>
<BackToTop /> {pathname === "/browse" ? <BackToTop /> : null}
</div> </div>
); );
} }

View File

@@ -5,7 +5,7 @@ export const EASE_OUT = [0.22, 1, 0.36, 1] as const;
/** Base transition for reveal-style animations. */ /** Base transition for reveal-style animations. */
export const baseTransition: Transition = { export const baseTransition: Transition = {
duration: 0.4, duration: 0.25,
ease: EASE_OUT, ease: EASE_OUT,
}; };