Updated pagination design. Improved tag category bar scroll behavior.
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user