From a2f9002b8115176fa1dfca28ffbf485278cc4ac2 Mon Sep 17 00:00:00 2001 From: n4ze3m Date: Sun, 20 Oct 2024 17:45:56 +0530 Subject: [PATCH] feat: enhance playground UI Refine the Playground's UI to improve user experience: - Streamline chat window layout for better message readability - Introduce a knowledge selection dropdown for easier context setting - Improve image upload integration for a smoother workflow - Optimize spacing and styling for a more polished visual appearance --- src/components/Common/CodeBlock.tsx | 6 ++- src/components/Common/Playground/Message.tsx | 4 +- src/components/Icons/Fireworks.tsx | 2 +- .../Option/Playground/PlaygroundChat.tsx | 6 +-- .../Option/Playground/PlaygroundForm.tsx | 39 ++++++++++--------- 5 files changed, 32 insertions(+), 25 deletions(-) diff --git a/src/components/Common/CodeBlock.tsx b/src/components/Common/CodeBlock.tsx index d48a699..9fd759d 100644 --- a/src/components/Common/CodeBlock.tsx +++ b/src/components/Common/CodeBlock.tsx @@ -90,7 +90,11 @@ export const CodeBlock: FC = ({ language, value }) => { width="80%" zIndex={999999} centered - bodyStyle={{ padding: 0 }}> + styles={{ + body: { + padding: 0 + } + }}>