From 376c6ae90a26b0c289853848494ede509af9c560 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Fri, 29 Nov 2024 16:29:44 +0530 Subject: [PATCH] feat: setup base for email --- .../components-next/message/bubbles/Base.vue | 19 ++++++++++++++----- .../components-next/message/constants.js | 1 + 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/app/javascript/dashboard/components-next/message/bubbles/Base.vue b/app/javascript/dashboard/components-next/message/bubbles/Base.vue index ec7790b62..e5bd64c5d 100644 --- a/app/javascript/dashboard/components-next/message/bubbles/Base.vue +++ b/app/javascript/dashboard/components-next/message/bubbles/Base.vue @@ -6,7 +6,7 @@ import { useMessageContext } from '../provider.js'; import { useI18n } from 'vue-i18n'; import { BUS_EVENTS } from 'shared/constants/busEvents'; -import { MESSAGE_VARIANTS } from '../constants'; +import { MESSAGE_VARIANTS, ORIENTATION } from '../constants'; const { variant, orientation, inReplyTo } = useMessageContext(); const { t } = useI18n(); @@ -19,12 +19,13 @@ const varaintBaseMap = { [MESSAGE_VARIANTS.BOT]: 'bg-n-solid-iris text-n-slate-12', [MESSAGE_VARIANTS.TEMPLATE]: 'bg-n-solid-iris text-n-slate-12', [MESSAGE_VARIANTS.ERROR]: 'bg-n-ruby-4 text-n-ruby-12', + [MESSAGE_VARIANTS.EMAIL]: 'bg-n-alpha-2 w-full', }; const orientationMap = { - left: 'rounded-xl rounded-bl-sm', - right: 'rounded-xl rounded-br-sm', - center: 'rounded-md', + [ORIENTATION.LEFT]: 'rounded-xl rounded-bl-sm', + [ORIENTATION.RIGHT]: 'rounded-xl rounded-br-sm', + [ORIENTATION.CENTER]: 'rounded-md', }; const messageClass = computed(() => { @@ -61,7 +62,15 @@ const previewMessage = computed(() => {