sticky header in photo gallery

This commit is contained in:
2022-06-28 21:24:49 -07:00
parent ad21989140
commit f6e9b4393a
2 changed files with 43 additions and 45 deletions

View File

@@ -28,7 +28,9 @@ const MasonryGallery = ({
if (!el) {
return;
}
el.scrollIntoView();
el.scrollIntoView({
block: "center",
});
}, []);
React.useEffect(() => {