updated logic for padding with spaces, improved spam mode

This commit is contained in:
Henry Jameson 2019-09-15 12:09:19 +03:00
parent d2fe797821
commit e366adbb6c
5 changed files with 36 additions and 7 deletions

View file

@ -27,7 +27,7 @@ const EmojiPicker = {
methods: {
onEmoji (emoji) {
const value = emoji.imageUrl ? `:${emoji.displayText}:` : emoji.replacement
this.$emit('emoji', { insertion: ` ${value} `, spamMode: this.spamMode })
this.$emit('emoji', { insertion: value, spamMode: this.spamMode })
},
highlight (key) {
const ref = this.$refs['group-' + key]