From 74b700c85850f747ce16b5945f596c8eda12145f Mon Sep 17 00:00:00 2001 From: Tristan Yang Date: Wed, 12 Apr 2023 21:31:19 +0800 Subject: [PATCH] chore: polish UIs --- src/common/component/Avatar.tsx | 1 - src/common/component/styled/Input.tsx | 2 +- src/routes/chat/SessionList/Session.tsx | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/common/component/Avatar.tsx b/src/common/component/Avatar.tsx index df3c559c..bf41d4cc 100644 --- a/src/common/component/Avatar.tsx +++ b/src/common/component/Avatar.tsx @@ -44,7 +44,6 @@ const Avatar: FC = ({
= ({ type = "text", prefix = "", className = "", ...rest
) : prefix ? (
- {prefix} + {typeof prefix === "string" ? {prefix} : {prefix}}
) : ( diff --git a/src/routes/chat/SessionList/Session.tsx b/src/routes/chat/SessionList/Session.tsx index 158a18e1..1465b743 100644 --- a/src/routes/chat/SessionList/Session.tsx +++ b/src/routes/chat/SessionList/Session.tsx @@ -118,14 +118,14 @@ const Session: FC = ({ to={navPath} onContextMenu={handleContextMenuEvent} > -
+
{type == "dm" ? ( ) : (