Page MenuHomePhorge

No OneTemporary

Authored By
Unknown
Size
982 B
Referenced Files
None
Subscribers
None
diff --git a/src/components/status_or_conversation/status_or_conversation.js b/src/components/status_or_conversation/status_or_conversation.js
index 84b7b44035..dc71c7aa66 100644
--- a/src/components/status_or_conversation/status_or_conversation.js
+++ b/src/components/status_or_conversation/status_or_conversation.js
@@ -1,25 +1,29 @@
import Status from '../status/status.vue'
import Conversation from '../conversation/conversation.vue'
const statusOrConversation = {
props: ['statusoid'],
data () {
return {
expanded: false
}
},
components: {
Status,
Conversation
},
methods: {
toggleExpanded () {
this.expanded = !this.expanded
},
collapse () {
- this.expanded = false
+ if (this.expanded) {
+ this.expanded = false
+ const posX = this.$el.offsetTop
+ window.scrollTo({ top: posX, left: 0, behavior: 'smooth' })
+ }
}
}
}
export default statusOrConversation

File Metadata

Mime Type
text/x-diff
Expires
Thu, Nov 19, 8:43 AM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1841070
Default Alt Text
(982 B)

Event Timeline