diff --git a/app/javascript/dashboard/components-next/message/bubbles/Image.vue b/app/javascript/dashboard/components-next/message/bubbles/Image.vue
index 84a294e89..9b386cfe9 100644
--- a/app/javascript/dashboard/components-next/message/bubbles/Image.vue
+++ b/app/javascript/dashboard/components-next/message/bubbles/Image.vue
@@ -55,9 +55,12 @@ const handleImageError = () => {
data-bubble-name="image"
@click="toggleGallery(true)"
>
-
-
-
+
+
+
{{ $t('COMPONENTS.MEDIA.IMAGE_UNAVAILABLE') }}
diff --git a/app/javascript/dashboard/components-next/message/bubbles/InstagramStory.vue b/app/javascript/dashboard/components-next/message/bubbles/InstagramStory.vue
index 4c3740755..6ae919133 100644
--- a/app/javascript/dashboard/components-next/message/bubbles/InstagramStory.vue
+++ b/app/javascript/dashboard/components-next/message/bubbles/InstagramStory.vue
@@ -57,10 +57,10 @@ const onVideoLoadError = () => {
/>
-
-
+
+
{{ $t('COMPONENTS.FILE_BUBBLE.INSTAGRAM_STORY_UNAVAILABLE') }}
diff --git a/app/javascript/dashboard/components-next/message/bubbles/Text/Index.vue b/app/javascript/dashboard/components-next/message/bubbles/Text/Index.vue
index 40b2e1fb2..f9bb12477 100644
--- a/app/javascript/dashboard/components-next/message/bubbles/Text/Index.vue
+++ b/app/javascript/dashboard/components-next/message/bubbles/Text/Index.vue
@@ -4,11 +4,11 @@ import BaseBubble from 'next/message/bubbles/Base.vue';
import FormattedContent from './FormattedContent.vue';
import AttachmentChips from 'next/message/chips/AttachmentChips.vue';
import TranslationToggle from 'dashboard/components-next/message/TranslationToggle.vue';
-import { MESSAGE_TYPES } from '../../constants';
+import { MESSAGE_TYPES, MESSAGE_VARIANTS } from '../../constants';
import { useMessageContext } from '../../provider.js';
import { useTranslations } from 'dashboard/composables/useTranslations';
-const { content, attachments, contentAttributes, messageType } =
+const { content, attachments, contentAttributes, messageType, variant } =
useMessageContext();
const { hasTranslations, translationContent } =
@@ -36,6 +36,17 @@ const isEmpty = computed(() => {
return !content.value && !attachments.value?.length;
});
+const emptyTextClass = computed(() => {
+ const metaClassMap = {
+ [MESSAGE_VARIANTS.AGENT]: 'text-[rgb(var(--bubble-agent-meta))]',
+ [MESSAGE_VARIANTS.USER]: 'text-[rgb(var(--bubble-user-meta))]',
+ [MESSAGE_VARIANTS.PRIVATE]: 'text-[rgb(var(--bubble-private-meta))]',
+ [MESSAGE_VARIANTS.BOT]: 'text-[rgb(var(--bubble-bot-meta))]',
+ [MESSAGE_VARIANTS.TEMPLATE]: 'text-[rgb(var(--bubble-bot-meta))]',
+ };
+ return metaClassMap[variant.value] || 'text-[rgb(var(--bubble-agent-meta))]';
+});
+
const handleSeeOriginal = () => {
renderOriginal.value = !renderOriginal.value;
};
@@ -47,7 +58,7 @@ const handleSeeOriginal = () => {
data-bubble-name="text"
>
-
+
{{ $t('CONVERSATION.NO_CONTENT') }}