fix more issues astra found

This commit is contained in:
Henry Jameson 2026-09-10 19:17:07 +03:00
commit ca7b866229
2 changed files with 8 additions and 4 deletions

View file

@ -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' })
}

View file

@ -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) {