Skip to content

Commit 379ea52

Browse files
authored
Merge pull request #11648 from nextcloud/fix/thread-scroll
fix: thread scrolls to middle of iframe
2 parents 8cbc64b + 77a91ad commit 379ea52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/ThreadEnvelope.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ export default {
737737
this.$nextTick(() => {
738738
const threadElement = document.querySelector(`[data-thread-id="${threadId}"]`)
739739
if (threadElement) {
740-
threadElement.scrollIntoView({ behavior: 'smooth', block: 'center' })
740+
threadElement.scrollIntoView({ behavior: 'smooth', block: 'top' })
741741
}
742742
})
743743
},
@@ -746,7 +746,7 @@ export default {
746746
this.$nextTick(() => {
747747
const envelopeElement = this.$refs.envelope
748748
if (envelopeElement) {
749-
envelopeElement.scrollIntoView({ behavior: 'smooth', block: 'center' })
749+
envelopeElement.scrollIntoView({ behavior: 'smooth', block: 'top' })
750750
}
751751
})
752752
},

0 commit comments

Comments
 (0)