From a809ba93a7d22163561d6d67d82f1a608ab2d1b3 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Mon, 17 Jul 2023 02:13:02 +0530 Subject: [PATCH] UX improvement --- components/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/components/index.html b/components/index.html index 2e3532c..517f14a 100644 --- a/components/index.html +++ b/components/index.html @@ -2240,6 +2240,7 @@ duration: 300, easing: 'ease' }) + getRef(pageId).parentNode.scroll(0, 0) const targetListItem = document.querySelector(`.list__item[href="#${pageId}"]`) targetListItem.classList.add('list__item--active') if (firstLoad && window.innerWidth > 640 && targetListItem.getBoundingClientRect().top > getRef('side_nav').getBoundingClientRect().height) {