commit: 4b18e0f36e260f0571bc3d11ca4061d653e145ee
parent b479d80366161768529655385165021fc368d155
Author: Henry Jameson <me@hjkos.com>
Date: Sun, 25 Apr 2021 13:33:02 +0300
fix status error
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/components/status/status.js b/src/components/status/status.js
@@ -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)
diff --git a/src/components/status/status.vue b/src/components/status/status.vue
@@ -2,6 +2,7 @@
<!-- eslint-disable vue/no-v-html -->
<div
v-if="!hideStatus"
+ ref="root"
class="Status"
:class="[{ '-focused': isFocused }, { '-conversation': inlineExpanded }]"
>