mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-17 02:56:16 +08:00
placing the element in the middle of the screen instead of the top
This commit is contained in:
parent
9db6de484a
commit
10b5eda36f
1 changed files with 1 additions and 1 deletions
|
@ -834,7 +834,7 @@ $(".pageAccount #accountHistoryChart").click((e) => {
|
|||
loadMoreLines(index);
|
||||
$([document.documentElement, document.body]).animate(
|
||||
{
|
||||
scrollTop: $(`#result-${index}`).offset().top,
|
||||
scrollTop: $(`#result-${index}`).offset().top - ($(window).height()/2),
|
||||
},
|
||||
500
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue