Skip to content
Snippets Groups Projects
Commit 4b18e0f3 authored by HJ's avatar HJ :fire:
Browse files

fix status error

parent b479d803
No related branches found
No related tags found
2 merge requests!1711Update stable - 2.5.0 release,!1385Migration to Vue 3 (again)
......@@ -308,7 +308,7 @@ const Status = {
watch: {
'highlight': function (id) {
if (this.status.id === id) {
let rect = this.$el.getBoundingClientRect()
let rect = this.$refs.root.getBoundingClientRect()
if (rect.top < 100) {
// Post is above screen, match its top to screen top
window.scrollBy(0, rect.top - 100)
......
......@@ -2,6 +2,7 @@
<!-- eslint-disable vue/no-v-html -->
<div
v-if="!hideStatus"
ref="root"
class="Status"
:class="[{ '-focused': isFocused }, { '-conversation': inlineExpanded }]"
>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment