refactor: scroll anchor is now to top instead of center

This commit is contained in:
Methapon2001 2024-08-04 21:58:34 +07:00
parent 7ce34dbcd2
commit 499cd1949b

View file

@ -31,7 +31,7 @@ function handleClick(menu: Menu) {
if (element) {
element.scrollIntoView({
behavior: 'smooth',
block: 'center',
block: 'start',
});
}
}