From 2b6b4fb5512573f46db7b94bd7853adc9388379e Mon Sep 17 00:00:00 2001 From: leedom Date: Tue, 4 Apr 2023 23:53:49 +0800 Subject: [PATCH] fix: bug of deleting chat on pc and remove delete button on mobile --- app/components/chat-list.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/components/chat-list.tsx b/app/components/chat-list.tsx index 8ad2b7dc0..916fd1a59 100644 --- a/app/components/chat-list.tsx +++ b/app/components/chat-list.tsx @@ -35,9 +35,11 @@ export function ChatItem(props: {
{props.time}
-
- -
+ {!isMobileScreen() ? ( +
+ +
+ ) : null} ); } @@ -63,7 +65,8 @@ export function ChatList() { selected={i === selectedIndex} onClick={() => selectSession(i)} onDelete={() => - (!isMobileScreen() || confirm(Locale.Home.DeleteChat)) && + !isMobileScreen() && + confirm(Locale.Home.DeleteChat) && removeSession(i) } />