We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f9e3a7 commit 6575ad0Copy full SHA for 6575ad0
1 file changed
src/.vuepress/theme/components/Page.vue
@@ -68,7 +68,7 @@ function toggleEditor(editor) {
68
} else {
69
editor.classList.remove('maximized')
70
document.body.style.overflow = 'auto'
71
- editor.scrollIntoView()
+ editor.scrollIntoView({ block: "nearest", behavior: "smooth" })
72
editor.querySelector('a.maximize').innerHTML = '◰'
73
}
74
0 commit comments