Updated pagination design. Improved tag category bar scroll behavior.

This commit is contained in:
2024-03-21 05:37:50 +01:00
parent 2ad40de889
commit 4a4898b73b
2 changed files with 14 additions and 3 deletions

View File

@@ -106,7 +106,10 @@ function calculateActiveCategory() {
const activeLink = document.querySelector(`a[href="#${activeCategory.value}"]`);
activeLink.scrollIntoView();
activeLink.scrollIntoView({
behavior: 'smooth',
inline: 'center',
});
navigate(`#${activeCategory.value}`, null, { replace: true });
}