From fc93ccc51c42329661cb80683c70b046a3c9de74 Mon Sep 17 00:00:00 2001 From: josc146 Date: Tue, 13 Jun 2023 00:02:48 +0800 Subject: [PATCH] adjust the order of header icons --- src/components/ConversationCard/index.jsx | 31 +++++++++++------------ 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/src/components/ConversationCard/index.jsx b/src/components/ConversationCard/index.jsx index 0143f9f..ad24ac0 100644 --- a/src/components/ConversationCard/index.jsx +++ b/src/components/ConversationCard/index.jsx @@ -381,6 +381,21 @@ function ConversationCard(props) { )} + a{' '} + {conversationItemData.length > 0 && ( + { + bodyRef.current.scrollTo({ + top: bodyRef.current.scrollHeight, + behavior: 'smooth', + }) + }} + > + + + )} - - {conversationItemData.length > 0 && ( - { - bodyRef.current.scrollTo({ - top: bodyRef.current.scrollHeight, - behavior: 'smooth', - }) - }} - > - - - )} -