[frontend] Fix offset and scrollIntoView behavior on SingleNote view
This commit is contained in:
parent
79a4ce012c
commit
12d8d66242
2 changed files with 1 additions and 2 deletions
|
@ -8,7 +8,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.scroller {
|
.scroller {
|
||||||
height: 100vh;
|
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
overflow-x: clip;
|
overflow-x: clip;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,5 +7,5 @@ export function SetScrollTop(ref, number) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ScrollIntoView(ref) {
|
export function ScrollIntoView(ref) {
|
||||||
ref.scrollIntoView(true)
|
ref.scrollIntoView({ behavior: "instant", block: "center"})
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue