diff --git a/src/components/conversation/conversation.vue b/src/components/conversation/conversation.vue index 1c0d459f3..abfd57d48 100644 --- a/src/components/conversation/conversation.vue +++ b/src/components/conversation/conversation.vue @@ -153,9 +153,6 @@ :focused="focused === element.id || focused === element.item.retweeted_status?.id" :data-status-id="element.id" - :data-vs-height="element.height" - :data-vs-top="element.top" - @goto="setFocused" @toggle-expanded="toggleExpanded" @suspendable-state-change="changeSuspendStateLinearLocal" diff --git a/src/components/status/status.js b/src/components/status/status.js index 277421c6e..6ef799dca 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -597,17 +597,12 @@ const Status = { }) }, }, - mounted() { - if (this.$refs.root) { - this.resizeObserver.observe(this.$refs.root) - } - }, unmounted() { this.resizeObserver.disconnect() }, watch: { - hideStatus: function (element) { - if (this.$refs.root) { + '$refs.root': function (element) { + if (element) { this.resizeObserver.observe(this.$refs.root) } else { this.resizeObserver.disconnect() diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue index 8ad3521cd..88cfdf066 100644 --- a/src/components/timeline/timeline.vue +++ b/src/components/timeline/timeline.vue @@ -90,10 +90,6 @@ v-if="element.type === 'item'" :status-id="element.item.id" role="listitem" - - :data-vs-height="element.height" - :data-vs-top="element.top" - @suspendable-state-change="changeSuspendState" @height-change="updateVirtualHeight" />