refactor: scroll anchor is now to top instead of center
This commit is contained in:
parent
7ce34dbcd2
commit
499cd1949b
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ function handleClick(menu: Menu) {
|
|||
if (element) {
|
||||
element.scrollIntoView({
|
||||
behavior: 'smooth',
|
||||
block: 'center',
|
||||
block: 'start',
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue