diff --git a/src/history/History.tsx b/src/history/History.tsx index dc0cce7..1cd4b41 100644 --- a/src/history/History.tsx +++ b/src/history/History.tsx @@ -15,8 +15,7 @@ export function History() { const getInTouch = (event: MouseEvent) => { try { const section = document.getElementById(contactId); - window.scroll({ - top: section!.getBoundingClientRect().top, + section?.scrollIntoView({ behavior: "smooth", }); event.preventDefault(); diff --git a/todo.md b/todo.md index 74931c7..3eec6ae 100644 --- a/todo.md +++ b/todo.md @@ -4,7 +4,6 @@ ## General -- downloadable pdf link - clean up repetitive styling for sections ## Contributions