From 950de6573fd516ec53e1284b540a372e5cab83a0 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Tue, 7 Jan 2025 14:04:41 +0800 Subject: [PATCH] =?UTF-8?q?perf(=E5=89=8D=E7=AB=AF):=20=E4=BC=9A=E8=AF=9D?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=98=BE=E7=A4=BA=E6=B8=A0=E9=81=93=E5=9B=BE?= =?UTF-8?q?=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Conversations/Conversations.css | 3 ++- src/views/Conversations/Online/Components/ChatListItem.jsx | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/views/Conversations/Conversations.css b/src/views/Conversations/Conversations.css index c1486df..4514f0f 100644 --- a/src/views/Conversations/Conversations.css +++ b/src/views/Conversations/Conversations.css @@ -186,7 +186,8 @@ margin-top: 0; /* margin-left: 5px; */ padding: 5px; - justify-content: flex-start; + /* justify-content: flex-start; */ + justify-content: center; font-size: 12px; /* word-wrap: break-word; */ text-wrap: nowrap; diff --git a/src/views/Conversations/Online/Components/ChatListItem.jsx b/src/views/Conversations/Online/Components/ChatListItem.jsx index 3293119..c6dcf02 100644 --- a/src/views/Conversations/Online/Components/ChatListItem.jsx +++ b/src/views/Conversations/Online/Components/ChatListItem.jsx @@ -255,6 +255,7 @@ const ChatListItem = (({item, refreshConversationList,setListUpdateFlag,onSwitch key={item.sn} id={item.sn} letterItem={{ id: item.show_default, letter: (item?.show_default || '').split("@")[0].slice(0, 5) }} + // letterItem={{ id: '群', letter: '群' }} alt={item.whatsapp_name} title={ @@ -289,6 +290,8 @@ const ChatListItem = (({item, refreshConversationList,setListUpdateFlag,onSwitch date={item.lasttime || item.last_received_time || item.last_send_time} dateString='' // 为了覆盖: 其他客户端发送的失败消息, 推送到此处产生新会话, 但是dataString是长字符串 unread={item.unread_msg_count > 99 ? 0 : item.unread_msg_count} + // muted={item.unread_msg_count>0} + // showMute={item.unread_msg_count>0} // className={[ // String(item.sn) === String(currentConversation.sn) ? '__active text-primary bg-whatsapp-bg' : '', // String(item.sn) === String(tabSelectedConversation?.sn) ? ' bg-neutral-200' : '', @@ -297,10 +300,10 @@ const ChatListItem = (({item, refreshConversationList,setListUpdateFlag,onSwitch statusText={ }