in src/components/common/LinkNav/index.tsx [17:28]
function handleClickScroll(hashId: string) {
const element = document.querySelector(`[data-id="${hashId}"]`);
if (!element) return;
const elementTop = element.getBoundingClientRect().top;
const alreadyScrolled = window.scrollY;
const elementTarget = 100;
window.scrollTo({
top: elementTop + alreadyScrolled - elementTarget,
behavior: "instant",
});
}