Add floating status-previews on reply-link mouseover in conversations and make them optional in the settings, fix a small visual inconsistency in muted statuses while editing the file already..

This commit is contained in:
Shpuld Shpuldson 2017-06-07 17:58:24 +03:00
parent 449a466ef2
commit f915ae174d
8 changed files with 80 additions and 10 deletions

View file

@ -100,6 +100,15 @@ const Status = {
},
toggleUserExpanded () {
this.userExpanded = !this.userExpanded
},
replyEnter (id, event) {
if (this.$store.state.config.hoverPreview) {
let rect = event.target.getBoundingClientRect()
this.$emit('preview', Number(id), rect.left + 20, rect.top + 20 + window.pageYOffset);
}
},
replyLeave () {
this.$emit('preview', 0, 0, 0)
}
},
watch: {