c6feea9f6d
* Use message formatter in widget * Rename the variable
28 lines
590 B
Vue
Executable file
28 lines
590 B
Vue
Executable file
<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>
|