diff --git a/assets/development/scripts/home.js b/assets/development/scripts/home.js index ae1cdd1..01422b5 100644 --- a/assets/development/scripts/home.js +++ b/assets/development/scripts/home.js @@ -194,7 +194,9 @@ function enableTag(node) { closeMenu() document.getElementsByClassName('content')[0].scrollIntoView(true) } else { - document.getElementsByClassName('up-footer')[0].scrollIntoView(true) + if (window.scrollY() > 300) { + document.getElementsByClassName('content')[0].scrollIntoView(true) + } } } diff --git a/assets/development/styles/home.css b/assets/development/styles/home.css index 84d76e3..2348034 100644 --- a/assets/development/styles/home.css +++ b/assets/development/styles/home.css @@ -76,6 +76,7 @@ .content { padding-top: 1.5em; display: flex; + padding-bottom: 1em; }