Chatwoot/app/javascript/widget/components/AgentMessageBubble.vue

29 lines
590 B
Vue
Raw Normal View History

<template>
<div class="chat-bubble agent" v-html="formatMessage(message)"></div>
</template>
<script>
import messageFormatterMixin from 'shared/mixins/messageFormatterMixin';
export default {
name: 'AgentMessageBubble',
mixins: [messageFormatterMixin],
props: {
message: String,
},
};
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss">
@import '~widget/assets/scss/variables.scss';
.chat-bubble {
&.agent {
background: $color-white;
border-bottom-left-radius: $space-smaller;
color: $color-body;
}
}
</style>