From 7b29a1b7afe7386b784382eef9f463e3c1650996 Mon Sep 17 00:00:00 2001 From: samlhuillier Date: Wed, 13 Dec 2023 04:19:00 +0530 Subject: [PATCH] some work to make the settings page be properly aligned --- src/components/Generic/Select.tsx | 12 ++++++------ src/components/Settings/LLMSettings.tsx | 21 ++++++++------------- src/components/Settings/Settings.tsx | 22 ++++++++++++---------- 3 files changed, 26 insertions(+), 29 deletions(-) diff --git a/src/components/Generic/Select.tsx b/src/components/Generic/Select.tsx index c8c1a1db..d7562761 100644 --- a/src/components/Generic/Select.tsx +++ b/src/components/Generic/Select.tsx @@ -37,25 +37,25 @@ const CustomSelect: React.FC = ({ }; return ( -
+
- {value} + {value} ▼{" "}
{isOpen && ( -
+
{options.map((option, index) => (
handleOptionClick(option)} > {option} diff --git a/src/components/Settings/LLMSettings.tsx b/src/components/Settings/LLMSettings.tsx index b2eb12c7..6e874b6b 100644 --- a/src/components/Settings/LLMSettings.tsx +++ b/src/components/Settings/LLMSettings.tsx @@ -60,21 +60,16 @@ const AIModelManager: React.FC = () => { const modelNames = Object.keys(modelConfigs); return ( -
+

LLM

- {/* */} - +
+ +
{/* +
+ +
{/*

LLM

= ({ isOpen, onClose }) => { disabled placeholder="LLM Model" /> */} -
+

Open AI Key

setOpenAIKey(e.target.value)} onKeyDown={handleKeyPress}