[frontend] Fix offset and scrollIntoView behavior on SingleNote view

This commit is contained in:
Lilian 2024-09-10 03:33:56 +02:00
parent 79a4ce012c
commit 12d8d66242
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

View file

@ -8,7 +8,6 @@
}
.scroller {
height: 100vh;
overflow-y: scroll;
overflow-x: clip;
}

View file

@ -7,5 +7,5 @@ export function SetScrollTop(ref, number) {
}
export function ScrollIntoView(ref) {
ref.scrollIntoView(true)
ref.scrollIntoView({ behavior: "instant", block: "center"})
}