style: 对话中文字体&小象样式
This commit is contained in:
@@ -20,12 +20,13 @@
|
|||||||
* General Sans BoldItalic
|
* General Sans BoldItalic
|
||||||
* General Sans Variable (Variable font)
|
* General Sans Variable (Variable font)
|
||||||
* General Sans VariableItalic (Variable font)
|
* General Sans VariableItalic (Variable font)
|
||||||
|
* Misans-Regular
|
||||||
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Regular';
|
font-family: 'Regular';
|
||||||
src:url('../fonts/GeneralSans-Regular.otf') format('opentype');
|
src: url('../fonts/GeneralSans-Regular.otf') format('opentype');
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
@@ -33,7 +34,7 @@
|
|||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Medium';
|
font-family: 'Medium';
|
||||||
src:url('../fonts/GeneralSans-Medium.otf') format('opentype'),
|
src: url('../fonts/GeneralSans-Medium.otf') format('opentype'),
|
||||||
url('../fonts/GeneralSans-MediumItalic.otf') format('opentype');
|
url('../fonts/GeneralSans-MediumItalic.otf') format('opentype');
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
@@ -42,7 +43,7 @@
|
|||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'SemiBold';
|
font-family: 'SemiBold';
|
||||||
src:url('../fonts/GeneralSans-Semibold.otf') format('opentype'),
|
src: url('../fonts/GeneralSans-Semibold.otf') format('opentype'),
|
||||||
url('../fonts/GeneralSans-SemiboldItalic.otf') format('opentype');
|
url('../fonts/GeneralSans-SemiboldItalic.otf') format('opentype');
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
@@ -51,7 +52,7 @@
|
|||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Bold';
|
font-family: 'Bold';
|
||||||
src:url('../fonts/GeneralSans-Bold.otf') format('opentype'),
|
src: url('../fonts/GeneralSans-Bold.otf') format('opentype'),
|
||||||
url('../fonts/GeneralSans-BoldItalic.otf') format('opentype');
|
url('../fonts/GeneralSans-BoldItalic.otf') format('opentype');
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
@@ -60,7 +61,7 @@
|
|||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Migra-Extrabold';
|
font-family: 'Migra-Extrabold';
|
||||||
src:url('../fonts/Migra-Extrabold.otf') format('opentype'),
|
src: url('../fonts/Migra-Extrabold.otf') format('opentype'),
|
||||||
url('../fonts/Migra-Extrabold.ttf') format('truetype'),
|
url('../fonts/Migra-Extrabold.ttf') format('truetype'),
|
||||||
url('../fonts/Migra-Extrabold.woff') format('woff'),
|
url('../fonts/Migra-Extrabold.woff') format('woff'),
|
||||||
url('../fonts/Migra-Extrabold.woff2') format('woff2');
|
url('../fonts/Migra-Extrabold.woff2') format('woff2');
|
||||||
@@ -71,7 +72,7 @@
|
|||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'LBold';
|
font-family: 'LBold';
|
||||||
src:url('../fonts/MazzardL-Bold.otf') format('opentype');
|
src: url('../fonts/MazzardL-Bold.otf') format('opentype');
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
@@ -79,15 +80,22 @@
|
|||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'MBold';
|
font-family: 'MBold';
|
||||||
src:url('../fonts/MazzardM-Bold.otf') format('opentype');
|
src: url('../fonts/MazzardM-Bold.otf') format('opentype');
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'MSemiBold';
|
font-family: 'MSemiBold';
|
||||||
src:url('../fonts/MazzardL-SemiBold.otf') format('opentype');
|
src: url('../fonts/MazzardL-SemiBold.otf') format('opentype');
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'MisansRegular';
|
||||||
|
src: url('../fonts/MiSans-Regular.ttf') format('truetype');
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 330;
|
||||||
|
}
|
||||||
|
|||||||
BIN
public/fonts/general/fonts/MiSans-Regular.ttf
Normal file
BIN
public/fonts/general/fonts/MiSans-Regular.ttf
Normal file
Binary file not shown.
@@ -87,7 +87,7 @@
|
|||||||
)
|
)
|
||||||
|
|
||||||
const listenAssistantPushChat = (message: Message) => {
|
const listenAssistantPushChat = (message: Message) => {
|
||||||
console.log('有新消息--');
|
console.log('有新消息--')
|
||||||
|
|
||||||
const exist = messageList.value.find((item: Message) => item.nodeType === message.nodeType)
|
const exist = messageList.value.find((item: Message) => item.nodeType === message.nodeType)
|
||||||
if (!exist) {
|
if (!exist) {
|
||||||
@@ -157,7 +157,8 @@
|
|||||||
|
|
||||||
.assistant-header {
|
.assistant-header {
|
||||||
height: 5.66rem;
|
height: 5.66rem;
|
||||||
font-family: 'Regular';
|
font-family: 'Medium';
|
||||||
|
color: #d58c4d;
|
||||||
font-size: 1.6rem;
|
font-size: 1.6rem;
|
||||||
padding: 0 1.59rem 0 2.05rem;
|
padding: 0 1.59rem 0 2.05rem;
|
||||||
background: linear-gradient(
|
background: linear-gradient(
|
||||||
|
|||||||
@@ -78,6 +78,7 @@
|
|||||||
.thumb {
|
.thumb {
|
||||||
width: 4rem;
|
width: 4rem;
|
||||||
height: 4rem;
|
height: 4rem;
|
||||||
|
flex-shrink: 0;
|
||||||
.assistant-head {
|
.assistant-head {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -90,7 +91,7 @@
|
|||||||
// width: 26.2rem;
|
// width: 26.2rem;
|
||||||
// align-self: end;
|
// align-self: end;
|
||||||
// }
|
// }
|
||||||
font-size: 1.4rem;
|
font-size: 1rem;
|
||||||
font-family: 'Regular';
|
font-family: 'Regular';
|
||||||
color: #333;
|
color: #333;
|
||||||
padding: 1.1rem 1.7rem;
|
padding: 1.1rem 1.7rem;
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="agent-item">
|
<div class="agent-item" :class="{ zh: isZh }">
|
||||||
<div
|
<div
|
||||||
class="message-wrapper flex"
|
class="message-wrapper flex"
|
||||||
:class="{ 'is-user': content.isUser, 'is-loading': content.loading }"
|
:class="{
|
||||||
|
'is-user': content.isUser,
|
||||||
|
'is-loading': content.loading
|
||||||
|
}"
|
||||||
>
|
>
|
||||||
<div class="thumb">
|
<div class="thumb">
|
||||||
<img :src="content.isUser ? userAvatar : agentThumb" class="thumb-icon" />
|
<img :src="content.isUser ? userAvatar : agentThumb" class="thumb-icon" />
|
||||||
@@ -56,10 +59,7 @@
|
|||||||
:rehype-plugins="[rehypeRaw]"
|
:rehype-plugins="[rehypeRaw]"
|
||||||
>
|
>
|
||||||
<template v-slot:s-card="{ children: children, ...attrs }">
|
<template v-slot:s-card="{ children: children, ...attrs }">
|
||||||
<Card
|
<Card title="Trend Report" @click.native="handleClickReport" />
|
||||||
title="Trend Report"
|
|
||||||
@click.native="handleClickReport"
|
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:s-url="{ children: children }">
|
<template v-slot:s-url="{ children: children }">
|
||||||
<Url :list="content.webAddress" @click.native="handleClickUrls" />
|
<Url :list="content.webAddress" @click.native="handleClickUrls" />
|
||||||
@@ -129,7 +129,11 @@
|
|||||||
|
|
||||||
const userStore = useUserInfoStore()
|
const userStore = useUserInfoStore()
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t, locale } = useI18n()
|
||||||
|
|
||||||
|
const isZh = computed(() => {
|
||||||
|
return locale.value === 'CHINESE_SIMPLIFIED'
|
||||||
|
})
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
content: Object
|
content: Object
|
||||||
@@ -181,7 +185,7 @@
|
|||||||
},
|
},
|
||||||
heading: {
|
heading: {
|
||||||
style: {
|
style: {
|
||||||
fontFamily: 'Regular',
|
fontFamily: isZh.value ? 'MisansRegular' : 'Regular',
|
||||||
lineHeight: 2
|
lineHeight: 2
|
||||||
// fontSize: '1.4rem'
|
// fontSize: '1.4rem'
|
||||||
}
|
}
|
||||||
@@ -425,6 +429,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.agent-item.zh {
|
||||||
|
&,
|
||||||
|
.web-address,
|
||||||
|
.thinking {
|
||||||
|
font-family: 'MisansRegular';
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
|
|||||||
Reference in New Issue
Block a user