mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			590 B
		
	
	
	
		
			Vue
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			29 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>
 |