From 6d5d09d69f1312746e624df00ba2758ad9c775c4 Mon Sep 17 00:00:00 2001 From: Danil Shishkevich <44939683+shishkevichd@users.noreply.github.com> Date: Sun, 26 Mar 2023 22:14:47 +0700 Subject: [PATCH] chore: restyle modal with model select (#202) chore: set normal font size for sidebar chore: set normal gradient for `ChatInput` --- components/Chat/Chat.tsx | 4 +-- components/Chat/ChatInput.tsx | 8 ++--- components/Chat/ModelSelect.tsx | 36 +++++++++++++---------- components/Chat/SystemPrompt.tsx | 2 +- components/Sidebar/ClearConversations.tsx | 4 +-- components/Sidebar/Conversation.tsx | 2 +- components/Sidebar/Search.tsx | 2 +- components/Sidebar/Sidebar.tsx | 6 ++-- components/Sidebar/SidebarButton.tsx | 4 +-- 9 files changed, 36 insertions(+), 32 deletions(-) diff --git a/components/Chat/Chat.tsx b/components/Chat/Chat.tsx index d4548c7..1d42332 100644 --- a/components/Chat/Chat.tsx +++ b/components/Chat/Chat.tsx @@ -126,12 +126,12 @@ export const Chat: FC = ({ {conversation.messages.length === 0 ? ( <>
-
+
{models.length === 0 ? t('Loading...') : 'Chatbot UI'}
{models.length > 0 && ( -
+
= ({ } return ( -
+
{messageIsStreaming && (
); }; diff --git a/components/Chat/SystemPrompt.tsx b/components/Chat/SystemPrompt.tsx index ada4199..6bf33ce 100644 --- a/components/Chat/SystemPrompt.tsx +++ b/components/Chat/SystemPrompt.tsx @@ -52,7 +52,7 @@ export const SystemPrompt: FC = ({ conversation, onChangePrompt }) => {