diff options
Diffstat (limited to 'src/client/components/note.vue')
| -rw-r--r-- | src/client/components/note.vue | 44 |
1 files changed, 14 insertions, 30 deletions
diff --git a/src/client/components/note.vue b/src/client/components/note.vue index 53972d9f6f..bf89cbf568 100644 --- a/src/client/components/note.vue +++ b/src/client/components/note.vue @@ -498,36 +498,20 @@ export default defineComponent({ react(viaKeyboard = false) { pleaseLogin(); this.blur(); - if (this.$store.state.device.useFullReactionPicker) { - os.popup(import('@/components/emoji-picker.vue'), { - src: this.$refs.reactButton, - }, { - done: reaction => { - if (reaction) { - os.api('notes/reactions/create', { - noteId: this.appearNote.id, - reaction: reaction - }); - } - this.focus(); - }, - }, 'closed'); - } else { - os.popup(import('@/components/reaction-picker.vue'), { - showFocus: viaKeyboard, - src: this.$refs.reactButton, - }, { - done: reaction => { - if (reaction) { - os.api('notes/reactions/create', { - noteId: this.appearNote.id, - reaction: reaction - }); - } - this.focus(); - }, - }, 'closed'); - } + os.popup(import('@/components/emoji-picker.vue'), { + src: this.$refs.reactButton, + compact: !this.$store.state.device.useFullReactionPicker + }, { + done: reaction => { + if (reaction) { + os.api('notes/reactions/create', { + noteId: this.appearNote.id, + reaction: reaction + }); + } + this.focus(); + }, + }, 'closed'); }, reactDirectly(reaction) { |