diff --git a/app/javascript/dashboard/components-next/message/Message.vue b/app/javascript/dashboard/components-next/message/Message.vue
index 706b160b3..a6be3bb1e 100644
--- a/app/javascript/dashboard/components-next/message/Message.vue
+++ b/app/javascript/dashboard/components-next/message/Message.vue
@@ -1,6 +1,6 @@
@@ -210,12 +216,7 @@ const shouldShowAvatar = computed(() => {
>
-
+
+import { computed } from 'vue';
+import { useMessageContext } from '../provider.js';
+import { MESSAGE_VARIANTS } from '../constants';
+
+const { variant, orientation } = useMessageContext();
+
+const varaintBaseMap = {
+ [MESSAGE_VARIANTS.AGENT]: 'bg-n-solid-blue p-3 text-n-slate-12',
+ [MESSAGE_VARIANTS.PRIVATE]: 'bg-n-solid-amber p-3 text-n-amber-12',
+ [MESSAGE_VARIANTS.USER]: 'bg-n-slate-4 p-3 text-n-slate-12',
+ [MESSAGE_VARIANTS.ACTIVITY]:
+ 'bg-n-alpha-1 px-2 py-0.5 text-n-slate-11 text-sm',
+ [MESSAGE_VARIANTS.BOT]: 'bg-n-teal-5 p-3 text-n-slate-12',
+ [MESSAGE_VARIANTS.TEMPLATE]: 'bg-n-teal-5 p-3 text-n-slate-12',
+ [MESSAGE_VARIANTS.ERROR]: 'bg-n-ruby-4 p-3 text-n-ruby-12',
+};
+
+const orientationMap = {
+ left: 'rounded-xl rounded-bl-sm',
+ right: 'rounded-xl rounded-br-sm',
+ center: 'rounded-md',
+};
+
+const messageClass = computed(() => {
+ const classToApply = [varaintBaseMap[variant.value]];
+
+ if (variant.value !== MESSAGE_VARIANTS.ACTIVITY) {
+ classToApply.push(orientationMap[orientation.value]);
+ } else {
+ classToApply.push('rounded-lg');
+ }
+
+ return classToApply;
+});
+
+
+
+
+
+
+
diff --git a/app/javascript/dashboard/components-next/message/bubbles/Text.vue b/app/javascript/dashboard/components-next/message/bubbles/Text.vue
index ac4df0f29..72cf6df4b 100644
--- a/app/javascript/dashboard/components-next/message/bubbles/Text.vue
+++ b/app/javascript/dashboard/components-next/message/bubbles/Text.vue
@@ -1,56 +1,21 @@
-
+
-
+