From 1c14e413bb34e7f445340f8b191b13718aa0a2bb Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Fri, 7 Jul 2023 18:57:54 +0800 Subject: [PATCH] fix develop mode style --- src/message.tsx | 75 ++++++++++++++++++++----------------------------- 1 file changed, 31 insertions(+), 44 deletions(-) diff --git a/src/message.tsx b/src/message.tsx index 7c38f07..67fdbfc 100644 --- a/src/message.tsx +++ b/src/message.tsx @@ -51,7 +51,7 @@ export default function Message(props: Props) { chat.role === "assistant" ? "justify-start" : "justify-end" }`} > -
+
- {chatStore.develop_mode ? ( - - ) : ( -

- {chat.hide - ? chat.content.split("\n")[0].slice(0, 16) + "... (deleted)" - : chat.content} -

- )} +

+ {chat.hide + ? chat.content.split("\n")[0].slice(0, 16) + "... (deleted)" + : chat.content} +

-
- token {chatStore.history[messageIndex].token} - -
+ {chatStore.develop_mode && ( +
+ token {chatStore.history[messageIndex].token} + +
+ )}