Fix: scroll padding

This commit is contained in:
Aroy-Art 2023-05-25 19:28:10 +02:00
parent 4e83792262
commit 4b88f2c7cd
Signed by: Aroy
GPG key ID: 583642324A1D2070

View file

@ -175,7 +175,7 @@ jQuery(function ($) {
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']'); target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
if (target.length) { if (target.length) {
html_body.animate({ html_body.animate({
scrollTop: target.offset().top - 50 scrollTop: target.offset().top - 82 // Value for scroll-padding
}, 1500, 'easeInOutExpo'); }, 1500, 'easeInOutExpo');
return false; return false;
} }