diff --git a/im-ui/src/components/chat/ChatMessageItem.vue b/im-ui/src/components/chat/ChatMessageItem.vue
index 3d63ff8..21fd465 100644
--- a/im-ui/src/components/chat/ChatMessageItem.vue
+++ b/im-ui/src/components/chat/ChatMessageItem.vue
@@ -11,34 +11,41 @@
-
+
-
-
![]()
+
+
-
+
-
{{data.name}}
+
{{data.name}}
{{fileSize}}
-
+
-
-
+
-
+
@@ -71,7 +78,7 @@
type: Object,
required: true
},
- menu:{
+ menu: {
type: Boolean,
default: true
}
@@ -184,8 +191,7 @@
}
.chat-msg-content {
- display: flex;
- flex-direction: column;
+ text-align: left;
.chat-msg-top {
display: flex;
@@ -200,9 +206,11 @@
}
.chat-msg-bottom {
- text-align: left;
+ display: inline-block;
+ padding-right: 80px;
.chat-msg-text {
+ display: block;
position: relative;
line-height: 35px;
margin-top: 10px;
@@ -210,9 +218,12 @@
background-color: #eeeeee;
border-radius: 3px;
color: #333;
- display: inline-block;
+ display: block;
font-size: 17px;
- overflow-wrap:break-word;
+ text-align: left;
+ white-space: pre-wrap;
+ word-break: break-all;
+
&:after {
content: "";
position: absolute;
@@ -320,6 +331,7 @@
}
.chat-msg-content {
+ text-align: right;
.chat-msg-top {
flex-direction: row-reverse;
@@ -331,15 +343,15 @@
}
.chat-msg-bottom {
- text-align: right;
+ padding-left: 80px;
+ padding-right: 0;
.chat-msg-text {
margin-left: 10px;
background-color: #5fb878;
color: #fff;
- display: inline-block;
vertical-align: top;
-
+
&:after {
left: auto;
right: -10px;
@@ -360,4 +372,4 @@
}
}
-
+
\ No newline at end of file
diff --git a/im-uniapp/components/chat-message-item/chat-message-item.vue b/im-uniapp/components/chat-message-item/chat-message-item.vue
index a488988..0d06583 100644
--- a/im-uniapp/components/chat-message-item/chat-message-item.vue
+++ b/im-uniapp/components/chat-message-item/chat-message-item.vue
@@ -223,8 +223,7 @@
.chat-msg-content {
- display: flex;
- flex-direction: column;
+ text-align: left;
.chat-msg-top {
display: flex;
@@ -239,9 +238,9 @@
}
.chat-msg-bottom {
- text-align: left;
-
- .chat-msg-text {
+ display: inline-block;
+ padding-right: 120rpx ;
+ .chat-msg-text {
position: relative;
line-height: 30px;
margin-top: 10px;
@@ -249,11 +248,11 @@
background-color: #eeeeee;
border-radius: 3px;
color: #333;
- display: inline-block;
font-size: 16px;
+ text-align: left;
+ display: block;
word-break: break-all;
white-space: pre-line;
-
&:after {
content: "";
@@ -370,7 +369,7 @@
}
.chat-msg-content {
-
+ text-align: right;
.chat-msg-top {
flex-direction: row-reverse;
@@ -381,19 +380,17 @@
}
.chat-msg-bottom {
- text-align: right;
-
+ padding-left: 120rpx ;
+ padding-right: 0;
.chat-msg-text {
margin-left: 10px;
- background-color: #5fb878;
+ background-color: #45ab62;
color: #fff;
- display: inline-block;
- vertical-align: top;
-
+
&:after {
left: auto;
right: -10px;
- border-top-color: #5fb878;
+ border-top-color: #45ab62;
}
}