From ba90045cbfe44e037daa2d6d8d316e3e864a1f44 Mon Sep 17 00:00:00 2001 From: 0xSage Date: Fri, 13 Oct 2023 14:08:40 +0800 Subject: [PATCH] style: convo text css, better chat box --- .../BasicPromptAccessories/index.tsx | 35 ++++++++++--------- .../_components/BasicPromptInput/index.tsx | 32 +++++++++++------ web/app/_components/InputToolbar/index.tsx | 15 +++++--- web/app/_components/SendButton/index.tsx | 10 ++---- .../_components/SimpleTextMessage/index.tsx | 2 +- 5 files changed, 54 insertions(+), 40 deletions(-) diff --git a/web/app/_components/BasicPromptAccessories/index.tsx b/web/app/_components/BasicPromptAccessories/index.tsx index 332b9625e..8baf25d6a 100644 --- a/web/app/_components/BasicPromptAccessories/index.tsx +++ b/web/app/_components/BasicPromptAccessories/index.tsx @@ -1,7 +1,7 @@ "use client"; import { useSetAtom } from "jotai"; -import SecondaryButton from "../SecondaryButton"; +import { FaceSmileIcon } from "@heroicons/react/24/outline"; import SendButton from "../SendButton"; import { showingAdvancedPromptAtom } from "@/_helpers/atoms/Modal.atom"; @@ -11,22 +11,23 @@ const BasicPromptAccessories: React.FC = () => { const shouldShowAdvancedPrompt = false; return ( -
- {shouldShowAdvancedPrompt && ( - setShowingAdvancedPrompt(true)} - /> - )} -
- {!shouldShowAdvancedPrompt && } +
+ {/* Emoji */} +
+
+ +
+
+ {/* send buton */} +
+ +
); }; diff --git a/web/app/_components/BasicPromptInput/index.tsx b/web/app/_components/BasicPromptInput/index.tsx index 7ff99d540..2dfa4e71a 100644 --- a/web/app/_components/BasicPromptInput/index.tsx +++ b/web/app/_components/BasicPromptInput/index.tsx @@ -45,16 +45,28 @@ const BasicPromptInput: React.FC = () => { }; return ( -