diff --git a/app/javascript/dashboard/components/widgets/conversation/Message.vue b/app/javascript/dashboard/components/widgets/conversation/Message.vue index bf39087cf..78b1c148f 100644 --- a/app/javascript/dashboard/components/widgets/conversation/Message.vue +++ b/app/javascript/dashboard/components/widgets/conversation/Message.vue @@ -197,11 +197,16 @@ export default { 'is-private': this.data.private, 'is-image': this.hasImageAttachment, 'is-text': this.hasText, + 'is-from-bot': this.isSentByBot, }; }, isPending() { return this.data.status === MESSAGE_STATUS.PROGRESS; }, + isSentByBot() { + if (this.isPending) return false; + return !this.sender.type || this.sender.type === 'bot'; + }, }, }; @@ -250,6 +255,13 @@ export default { color: var(--color-body); text-decoration: underline; } + + &.is-from-bot { + background: var(--v-400); + .message-text--metadata .time { + color: var(--v-50); + } + } } &.is-pending {