From a946a2b25d9acc477851935cb20fd81a43770c84 Mon Sep 17 00:00:00 2001 From: xsx <825657193@qq.com> Date: Sun, 28 Jul 2024 16:42:22 +0800 Subject: [PATCH] =?UTF-8?q?web=E7=AB=AFui=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-ui/src/components/chat/ChatBox.vue | 4 ++++ im-ui/src/components/chat/ChatItem.vue | 13 +++++++++++-- im-ui/src/components/friend/FriendItem.vue | 3 +-- im-ui/src/components/group/GroupItem.vue | 3 +-- im-ui/src/view/Chat.vue | 2 +- im-ui/src/view/Friend.vue | 2 +- im-ui/src/view/Group.vue | 2 +- im-ui/src/view/Home.vue | 20 ++++++++++---------- 8 files changed, 30 insertions(+), 19 deletions(-) diff --git a/im-ui/src/components/chat/ChatBox.vue b/im-ui/src/components/chat/ChatBox.vue index 97b3678..175b507 100644 --- a/im-ui/src/components/chat/ChatBox.vue +++ b/im-ui/src/components/chat/ChatBox.vue @@ -320,6 +320,7 @@ msgInfo.loadStatus = 'ok'; msgInfo.id = m.id; this.isReceipt = false; + this.refreshPlaceHolder(); this.$store.commit("insertMessage", msgInfo); }) }, @@ -375,6 +376,7 @@ msgInfo.loadStatus = 'ok'; msgInfo.id = m.id; this.isReceipt = false; + this.refreshPlaceHolder(); this.$store.commit("insertMessage", msgInfo); }) }, @@ -540,6 +542,7 @@ // 关闭录音窗口 this.showRecord = false; this.isReceipt = false; + this.refreshPlaceHolder(); }) }, @@ -611,6 +614,7 @@ this.scrollToBottom(); this.resetEditor(); this.isReceipt = false; + this.refreshPlaceHolder(); }); }, diff --git a/im-ui/src/components/chat/ChatItem.vue b/im-ui/src/components/chat/ChatItem.vue index b1c3fc6..5320e7a 100644 --- a/im-ui/src/components/chat/ChatItem.vue +++ b/im-ui/src/components/chat/ChatItem.vue @@ -7,6 +7,9 @@
+
+ +
{{chat.showName}}
{{showTime}}
@@ -109,8 +112,7 @@ display: flex; margin-bottom: 1px; position: relative; - padding: 5px; - padding-left: 10px; + padding: 5px 10px; align-items: center; background-color: white; white-space: nowrap; @@ -160,6 +162,13 @@ line-height: 25px; height: 25px; + .chat-tag { + display: flex; + align-items: center; + justify-content: center; + margin-right: 1px; + } + .chat-name-text { flex: 1; font-size: 15px; diff --git a/im-ui/src/components/friend/FriendItem.vue b/im-ui/src/components/friend/FriendItem.vue index 5be5222..aa65316 100644 --- a/im-ui/src/components/friend/FriendItem.vue +++ b/im-ui/src/components/friend/FriendItem.vue @@ -88,8 +88,7 @@ display: flex; margin-bottom: 1px; position: relative; - padding: 5px; - padding-left: 10px; + padding: 5px 10px; align-items: center; background-color: #fafafa; white-space: nowrap; diff --git a/im-ui/src/components/group/GroupItem.vue b/im-ui/src/components/group/GroupItem.vue index e2c051a..fd2b811 100644 --- a/im-ui/src/components/group/GroupItem.vue +++ b/im-ui/src/components/group/GroupItem.vue @@ -38,8 +38,7 @@ display: flex; margin-bottom: 1px; position: relative; - padding: 5px; - padding-left: 10px; + padding: 5px 10px; align-items: center; background-color: white; white-space: nowrap; diff --git a/im-ui/src/view/Chat.vue b/im-ui/src/view/Chat.vue index def027f..cd56432 100644 --- a/im-ui/src/view/Chat.vue +++ b/im-ui/src/view/Chat.vue @@ -1,6 +1,6 @@