Use StillImage for emoji group header

Ref: grouped-emoji-picker
This commit is contained in:
Tusooa Zhu 2021-10-08 13:17:47 -04:00
parent 031a01be79
commit 5ab51613b7
No known key found for this signature in database
GPG Key ID: 7B467EDE43A08224
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,6 @@
import { defineAsyncComponent } from 'vue'
import Checkbox from '../checkbox/checkbox.vue'
import StillImage from '../still-image/still-image.vue'
import lozad from 'lozad'
import { library } from '@fortawesome/fontawesome-svg-core'
import {
@ -52,7 +53,8 @@ const EmojiPicker = {
},
components: {
StickerPicker: defineAsyncComponent(() => import('../sticker_picker/sticker_picker.vue')),
Checkbox
Checkbox,
StillImage
},
methods: {
onStickerUploaded (e) {

View File

@ -16,10 +16,10 @@
v-if="group.image"
class="emoji-picker-header-image"
>
<img
<still-image
:alt="group.text"
:src="group.image"
>
/>
</span>
<FAIcon
v-else