From 01f271fb384ce5ace2e17cb67af9c34e609d39a3 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Fri, 23 Feb 2024 09:26:30 +0800 Subject: [PATCH] style: --- .../Conversations/Components/ConversationsList.jsx | 4 ++-- src/views/Conversations/Conversations.css | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/views/Conversations/Components/ConversationsList.jsx b/src/views/Conversations/Components/ConversationsList.jsx index 15040e7..a83ea03 100644 --- a/src/views/Conversations/Components/ConversationsList.jsx +++ b/src/views/Conversations/Components/ConversationsList.jsx @@ -91,8 +91,8 @@ const Conversations = () => { if (!isEmpty(data)) { addToConversationList(data); } - // const ifCurrent = data.findIndex((item) => item.sn === currentConversation.sn); - const ifCurrent = conversationsList.findIndex((item) => item.coli_sn === Number(colisn)); + let ifCurrent = data.findIndex((item) => item.sn === currentConversation.sn); + ifCurrent = ifCurrent !== -1 ? ifCurrent : conversationsList.findIndex((item) => item.coli_sn === Number(colisn)); if (ifCurrent !== -1) { switchConversation(conversationsList[ifCurrent === -1 ? 0 : ifCurrent]); } else { diff --git a/src/views/Conversations/Conversations.css b/src/views/Conversations/Conversations.css index 6a1adb1..8824ed8 100644 --- a/src/views/Conversations/Conversations.css +++ b/src/views/Conversations/Conversations.css @@ -18,3 +18,13 @@ .chatwindow-wrapper .rce-mbox-text:after{ content: none; } +.chatwindow-wrapper .rce-mbox-left-notch { + width: 10px; + height: 10px; + left: -9px; +} +.chatwindow-wrapper .rce-mbox-right-notch { + width: 10px; + height: 10px; + right: -9px; +}