Improve emoji picker

This commit is contained in:
syuilo 2020-11-14 11:47:30 +09:00
parent abb3d2a8d9
commit 9c9cd168ee
4 changed files with 75 additions and 293 deletions

View file

@ -80,18 +80,11 @@ export default defineComponent({
},
preview(ev) {
if (this.$store.state.device.useFullReactionPicker) {
os.popup(import('@/components/emoji-picker.vue'), {
overridePinned: this.splited,
src: ev.currentTarget || ev.target,
}, {}, 'closed');
} else {
os.popup(import('@/components/reaction-picker.vue'), {
reactions: this.splited,
showFocus: false,
src: ev.currentTarget || ev.target,
}, {}, 'closed');
}
os.popup(import('@/components/emoji-picker.vue'), {
overridePinned: this.splited,
compact: !this.$store.state.device.useFullReactionPicker,
src: ev.currentTarget || ev.target,
}, {}, 'closed');
},
setDefault() {