improve emoji reaction action button behavior and feedback

This commit is contained in:
Henry Jameson 2026-06-01 20:50:12 +03:00
commit a2a1346162
8 changed files with 28 additions and 4 deletions

View file

@ -131,6 +131,12 @@ export default {
this.$store.dispatch('reactWithEmoji', { id: this.status.id, emoji })
}
},
onShowEmojiPicker() {
this.$emit('emojiPickerShown', true)
},
onHideEmojiPicker() {
this.$emit('emojiPickerShown', false)
},
doActionWrap(
button,
close = () => {
@ -142,7 +148,7 @@ export default {
)
return
if (button.name === 'emoji') {
this.$refs.picker.showPicker()
this.$refs.picker.togglePicker()
} else {
this.animationState = true
this.getComponent(button) === 'button' && this.doAction(button)