Browse Source

fix: 三轮测试修复

wzl 1 month ago
parent
commit
9efea87ca8

+ 1 - 0
packages/webview/src/components/AnnotationContainer/AnnotationContent.vue

@@ -400,6 +400,7 @@ const openAnnotationReply = (annotation) => {
   }
   setTimeout(() => {
     const div = document.querySelector('.annotation-item.selected')
+    div.scrollIntoView({ behavior: 'smooth' })
     if (!div.classList.contains('flash-border')) {
       div.classList.add('flash-border')
       timeout = setTimeout(() => document.querySelector('.annotation-item.selected').classList.remove('flash-border'), 2000)