improvment over Docs headings

This commit is contained in:
yashsinghcodes
2024-05-13 08:23:34 +00:00
parent 7873294bf2
commit 7c9e4c7292
2 changed files with 105 additions and 58 deletions
+2 -1
View File
@@ -24,7 +24,8 @@ function ScrollToTop({ getUserNotifications, curpath, setCurpath, history }) {
// Custom handler for certain scroll mechanics
//
//console.log("OLD: ", curpath, "NeW: ", window.location.pathname)
if (curpath === window.location.pathname && curpath === "/usecases") {
if (curpath === window.location.pathname && (curpath === "/usecases" ||
(curpath === "/docs" && location.hash.length > 0))) {
} else {
window.scroll({