From a03eab710087c906e57dbd6950636992067337de Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 21 Mar 2025 13:04:52 -0700 Subject: [PATCH] styling dropdown --- gui/src/components/mainInput/Lump/index.tsx | 4 +- .../mainInput/Lump/sections/ModelsSection.tsx | 2 +- gui/src/pages/config/ModelRoleSelector.tsx | 52 ++++++++++++------- 3 files changed, 36 insertions(+), 22 deletions(-) diff --git a/gui/src/components/mainInput/Lump/index.tsx b/gui/src/components/mainInput/Lump/index.tsx index bd54b5015..579f5f247 100644 --- a/gui/src/components/mainInput/Lump/index.tsx +++ b/gui/src/components/mainInput/Lump/index.tsx @@ -39,7 +39,9 @@ export function Lump(props: LumpProps) { setSelectedSection={setSelectedSection} /> -
+
diff --git a/gui/src/components/mainInput/Lump/sections/ModelsSection.tsx b/gui/src/components/mainInput/Lump/sections/ModelsSection.tsx index 249ba77bb..cd16e8453 100644 --- a/gui/src/components/mainInput/Lump/sections/ModelsSection.tsx +++ b/gui/src/components/mainInput/Lump/sections/ModelsSection.tsx @@ -51,7 +51,7 @@ export function ModelsSection() { } return ( -
+
- {displayName} - + + {displayName} + + {description} @@ -42,21 +45,24 @@ const ModelRoleSelector = ({ {({ open }) => (
{models.length === 0 ? ( - {`No ${displayName} models${["Chat", "Apply", "Edit"].includes(displayName) ? ". Using chat model" : ""}`} + {`No ${displayName} models${["Chat", "Apply", "Edit"].includes(displayName) ? ". Using chat model" : ""}`} ) : ( - + {selectedModel?.title ?? `Select ${displayName} model`} )} {models.length ? (
-
) : null}
@@ -71,14 +77,20 @@ const ModelRoleSelector = ({ leaveFrom="transform opacity-100 scale-100" leaveTo="transform opacity-0 scale-95" > - + {models.map((option, idx) => ( - + {option.title}