mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-10 11:13:42 +08:00
优化聊天页面事件处理
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="chat-line chat-line-right">
|
||||
<div class="chat-item">
|
||||
<span class="content">{{ content }}</span>
|
||||
<div class="content">{{ content }}</div>
|
||||
<div class="triangle"></div>
|
||||
</div>
|
||||
|
||||
@@ -38,6 +38,10 @@ export default defineComponent({
|
||||
|
||||
.chat-icon {
|
||||
margin-left 5px;
|
||||
|
||||
img {
|
||||
border-radius 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.chat-item {
|
||||
@@ -57,7 +61,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
.content {
|
||||
float: right;
|
||||
word-break break-word;
|
||||
padding: 5px 10px;
|
||||
background-color: #98E165;
|
||||
color var(--content-color);
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
<div class="chat-item">
|
||||
<div class="triangle"></div>
|
||||
<span class="content">{{ content }}</span>
|
||||
<div class="content">{{ content }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -38,6 +38,10 @@ export default defineComponent({
|
||||
|
||||
.chat-icon {
|
||||
margin-right 5px;
|
||||
|
||||
img {
|
||||
border-radius 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.chat-item {
|
||||
@@ -58,7 +62,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
.content {
|
||||
float: left;
|
||||
word-break break-word;
|
||||
padding: 8px 10px;
|
||||
color var(--content-color)
|
||||
background-color: #fff;
|
||||
|
||||
Reference in New Issue
Block a user