fix more issues astra found
This commit is contained in:
parent
be8c5c2532
commit
ca7b866229
2 changed files with 8 additions and 4 deletions
|
|
@ -83,7 +83,7 @@ export default {
|
|||
router.push({ name: 'conversation', params: { statusId: id } })
|
||||
}
|
||||
setFocused(id)
|
||||
const target = document.querySelector(`.Status[data-status-id=${id}]`)
|
||||
const target = document.querySelector(`.Status[data-status-id="${id}"]`)
|
||||
return await scroller.scrollIntoView(target, { block: 'nearest' })
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -597,13 +597,17 @@ const Status = {
|
|||
})
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.resizeObserver.observe(this.$el)
|
||||
},
|
||||
unmounted() {
|
||||
this.resizeObserver.disconnect()
|
||||
},
|
||||
watch: {
|
||||
'$refs.root': function (element) {
|
||||
if (element) {
|
||||
this.resizeObserver.observe(this.$refs.root)
|
||||
} else {
|
||||
this.resizeObserver.disconnect()
|
||||
}
|
||||
},
|
||||
'mainStatus.repeat_num': function (num) {
|
||||
// refetch repeats when repeat_num is changed in any way
|
||||
if (this.focused && this.repeatedBy.size !== num) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue