Archived
Platform 0.1.6 (contact security) + fidelity fixes from the port review
- .container back in @layer components so Tailwind's px-4 still wins; unlayered it had quietly widened the gutter on every page - shadow-sm -> shadow-xs: Tailwind v4 renamed the scale, so the ported markup was giving every white card a heavier shadow than the live site - route changes jump to the top again instead of smooth-scrolling - preload the wordmark font and the hero image
This commit is contained in:
@@ -15,7 +15,9 @@ import NotFoundPage from '@/pages/NotFound';
|
||||
const ScrollToTop = () => {
|
||||
const { pathname, hash } = useLocation();
|
||||
useEffect(() => {
|
||||
if (!hash) window.scrollTo(0, 0);
|
||||
// 'instant' overrides the page's scroll-behavior:smooth, which is meant for the #visit
|
||||
// anchor, not for landing on a new page.
|
||||
if (!hash) window.scrollTo({ top: 0, behavior: 'instant' });
|
||||
}, [pathname, hash]);
|
||||
return null;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user