chore: Update emoji picker in widget (#14741)

This commit is contained in:
Sivin Varghese
2026-06-16 10:39:47 +05:30
committed by GitHub
parent dda25c0b51
commit a3d05ef55d
9 changed files with 113 additions and 50 deletions
@@ -8,9 +8,8 @@ import { useAttachments } from '../composables/useAttachments';
import FluentIcon from 'shared/components/FluentIcon/Index.vue';
import ResizableTextArea from 'shared/components/ResizableTextArea.vue';
const EmojiIconPicker = defineAsyncComponent(
() =>
import('dashboard/components-next/emoji-icon-picker/EmojiIconPicker.vue')
const EmojiPicker = defineAsyncComponent(
() => import('shared/components/emoji/EmojiPicker.vue')
);
export default {
@@ -18,7 +17,7 @@ export default {
components: {
ChatAttachmentButton,
ChatSendButton,
EmojiIconPicker,
EmojiPicker,
FluentIcon,
ResizableTextArea,
},
@@ -176,10 +175,9 @@ export default {
}"
/>
</button>
<EmojiIconPicker
<EmojiPicker
v-if="shouldShowEmojiPicker && showEmojiPicker"
v-on-clickaway="hideEmojiPicker"
mode="emoji"
class="!bottom-full end-0 mb-2 max-w-[calc(100vw-3rem)]"
@select="onSelectEmoji"
@keydown.esc="hideEmojiPicker"