From 53695252b62ef61455bf711bee30741648f946ee Mon Sep 17 00:00:00 2001 From: Tristan Yang Date: Wed, 21 Jun 2023 18:49:55 +0800 Subject: [PATCH] fix: session list UX in mobile --- src/routes/chat/SessionList/index.tsx | 6 +++--- src/routes/chat/index.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/routes/chat/SessionList/index.tsx b/src/routes/chat/SessionList/index.tsx index b1f6d944..e2affbdc 100644 --- a/src/routes/chat/SessionList/index.tsx +++ b/src/routes/chat/SessionList/index.tsx @@ -113,7 +113,7 @@ const SessionList: FC = ({ tempSession }) => { ]); return ( - <> +
{pinSessions.length ? (
    {pinSessions.map((p) => { @@ -133,7 +133,7 @@ const SessionList: FC = ({ tempSession }) => { })}
) : null} -
    +
      {(s) => { const { type, id, mid = 0 } = s; @@ -168,7 +168,7 @@ const SessionList: FC = ({ tempSession }) => { }} /> )} - +
); }; export default memo(SessionList); diff --git a/src/routes/chat/index.tsx b/src/routes/chat/index.tsx index 5aa121ee..19710595 100644 --- a/src/routes/chat/index.tsx +++ b/src/routes/chat/index.tsx @@ -89,7 +89,7 @@ function ChatPage() { )}