mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Merge pull request #3857 from mikelei8291/preview-fixes
快速收起评论: 收起评论时使用平滑滚动
This commit is contained in:
commit
42a64c5834
@ -24,7 +24,7 @@ const entry = async () => {
|
||||
button.innerHTML = '收起评论'
|
||||
button.addEventListener('click', () => {
|
||||
clickHandler()
|
||||
card.scrollIntoView()
|
||||
card.scrollIntoView({ behavior: 'smooth' })
|
||||
})
|
||||
commentBox.insertAdjacentElement('beforeend', button)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user