mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			65 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Vue
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			65 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Vue
		
	
	
		
			Executable File
		
	
	
	
	
<template>
 | 
						|
  <header class="header-expanded bg-white py-8 px-6 relative box-border w-full">
 | 
						|
    <div
 | 
						|
      class="flex items-start"
 | 
						|
      :class="[avatarUrl ? 'justify-between' : 'justify-end']"
 | 
						|
    >
 | 
						|
      <img v-if="avatarUrl" class="logo" :src="avatarUrl" />
 | 
						|
      <header-actions :show-popout-button="showPopoutButton" />
 | 
						|
    </div>
 | 
						|
    <h2
 | 
						|
      class="text-slate-900 mt-6 text-4xl mb-3 font-normal"
 | 
						|
      v-html="introHeading"
 | 
						|
    />
 | 
						|
    <p class="text-lg text-black-700 leading-normal" v-html="introBody" />
 | 
						|
  </header>
 | 
						|
</template>
 | 
						|
 | 
						|
<script>
 | 
						|
import { mapGetters } from 'vuex';
 | 
						|
import HeaderActions from './HeaderActions';
 | 
						|
export default {
 | 
						|
  name: 'ChatHeaderExpanded',
 | 
						|
  components: {
 | 
						|
    HeaderActions,
 | 
						|
  },
 | 
						|
  props: {
 | 
						|
    avatarUrl: {
 | 
						|
      type: String,
 | 
						|
      default: '',
 | 
						|
    },
 | 
						|
    introHeading: {
 | 
						|
      type: String,
 | 
						|
      default: '',
 | 
						|
    },
 | 
						|
    introBody: {
 | 
						|
      type: String,
 | 
						|
      default: '',
 | 
						|
    },
 | 
						|
    showPopoutButton: {
 | 
						|
      type: Boolean,
 | 
						|
      default: false,
 | 
						|
    },
 | 
						|
  },
 | 
						|
  computed: {
 | 
						|
    ...mapGetters({
 | 
						|
      widgetColor: 'appConfig/getWidgetColor',
 | 
						|
    }),
 | 
						|
  },
 | 
						|
};
 | 
						|
</script>
 | 
						|
 | 
						|
<style scoped lang="scss">
 | 
						|
@import '~widget/assets/scss/mixins.scss';
 | 
						|
 | 
						|
$logo-size: 56px;
 | 
						|
 | 
						|
.header-expanded {
 | 
						|
  .logo {
 | 
						|
    width: $logo-size;
 | 
						|
    height: $logo-size;
 | 
						|
    border-radius: $logo-size;
 | 
						|
  }
 | 
						|
}
 | 
						|
</style>
 |