【优化】Ai 对话 Message 非 user 类型显示到左边
This commit is contained in:
parent
07241b5efb
commit
559cd48c4f
@ -3,7 +3,7 @@
|
|||||||
<div class="chat-list" v-for="(item, index) in list" :key="index" >
|
<div class="chat-list" v-for="(item, index) in list" :key="index" >
|
||||||
<!-- 靠左 message -->
|
<!-- 靠左 message -->
|
||||||
<!-- TODO 芋艿:类型判断 -->
|
<!-- TODO 芋艿:类型判断 -->
|
||||||
<div class="left-message message-item" v-if="item.type === 'system'">
|
<div class="left-message message-item" v-if="item.type !== 'user'">
|
||||||
<div class="avatar">
|
<div class="avatar">
|
||||||
<el-avatar
|
<el-avatar
|
||||||
src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"
|
src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"
|
||||||
@ -156,11 +156,9 @@ onMounted(async () => {
|
|||||||
//width: 100%;
|
//width: 100%;
|
||||||
//height: 100%;
|
//height: 100%;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
padding: 0 15px;
|
//padding: 0 15px;
|
||||||
//z-index: -1;
|
//z-index: -1;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 中间
|
// 中间
|
||||||
@ -168,7 +166,7 @@ onMounted(async () => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
|
padding: 0 20px;
|
||||||
.message-item {
|
.message-item {
|
||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user