From 22409611d2aa0cb5fa3b4a9170f88436d581b6ea Mon Sep 17 00:00:00 2001 From: Test Date: Thu, 12 Sep 2024 11:22:19 -0700 Subject: [PATCH] update styling --- docs/static/schemas/config.json | 22 +++++++++++++------ .../src/main/resources/config_schema.json | 2 +- extensions/vscode/continue_rc_schema.json | 8 ++++--- extensions/vscode/package-lock.json | 4 ++-- gui/src/components/mainInput/TipTapEditor.tsx | 6 +---- .../components/modelSelection/ModelSelect.tsx | 7 +++--- 6 files changed, 28 insertions(+), 21 deletions(-) diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index 2046ba4f4..377ae9872 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -244,10 +244,10 @@ "type": "string" }, "region": { - "title": "Region", - "description": "The region where the model is hosted", - "type": "string" - }, + "title": "Region", + "description": "The region where the model is hosted", + "type": "string" + }, "profile": { "title": "Profile", "description": "The AWS security profile to use", @@ -414,7 +414,9 @@ "if": { "properties": { "provider": { - "enum": ["bedrockimport"] + "enum": [ + "bedrockimport" + ] } }, "required": ["provider"] @@ -1315,7 +1317,11 @@ "model": { "anyOf": [ { - "enum": ["llama3.1-8b", "llama3.1-70b", "llama3.1-405b"] + "enum": [ + "llama3.1-8b", + "llama3.1-70b", + "llama3.1-405b" + ] }, { "type": "string" @@ -2088,7 +2094,9 @@ "cohere", "free-trial", "gemini", - "voyage" + "voyage", + "nvidia", + "bedrock" ] }, "model": { diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index e003ed090..377ae9872 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -2137,7 +2137,7 @@ "if": { "properties": { "provider": { - "enum": ["cohere", "voyage", "gemini", "nvidia"] + "enum": ["cohere", "voyage", "nvidia", "gemini"] } }, "required": ["provider"] diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index 85c62b7db..58453fc5c 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -2329,7 +2329,9 @@ "cohere", "free-trial", "gemini", - "voyage" + "voyage", + "nvidia", + "bedrock" ] }, "model": { @@ -2375,8 +2377,8 @@ "enum": [ "cohere", "voyage", - "gemini", - "nvidia" + "nvidia", + "gemini" ] } }, diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index cc7f02c23..890c69954 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "0.9.208", + "version": "0.9.209", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "0.9.208", + "version": "0.9.209", "license": "Apache-2.0", "dependencies": { "@electron/rebuild": "^3.2.10", diff --git a/gui/src/components/mainInput/TipTapEditor.tsx b/gui/src/components/mainInput/TipTapEditor.tsx index 2b4b46466..775efce97 100644 --- a/gui/src/components/mainInput/TipTapEditor.tsx +++ b/gui/src/components/mainInput/TipTapEditor.tsx @@ -58,11 +58,8 @@ import { } from "./getSuggestion"; import { ComboBoxItem } from "./types"; -const InputBoxDiv = styled.div<{ disabled?: boolean }>` +const InputBoxDiv = styled.div` resize: none; - opacity: ${(props) => (props.disabled ? 0.5 : 1)}; - pointer-events: ${(props) => (props.disabled ? "none" : "auto")}; - cursor: ${(props) => (props.disabled ? "not-allowed" : "text")}; padding: 8px 12px; padding-bottom: 4px; font-family: inherit; @@ -817,7 +814,6 @@ function TipTapEditor(props: TipTapEditorProps) { return ( { if (e.key === "Alt") { setOptionKeyHeld(true); diff --git a/gui/src/components/modelSelection/ModelSelect.tsx b/gui/src/components/modelSelection/ModelSelect.tsx index 3e860e310..71cdc1e5d 100644 --- a/gui/src/components/modelSelection/ModelSelect.tsx +++ b/gui/src/components/modelSelection/ModelSelect.tsx @@ -45,6 +45,7 @@ interface Option { } const MAX_HEIGHT_PX = 300; + const StyledListboxButton = styled(Listbox.Button)` font-family: inherit; display: flex; @@ -187,7 +188,7 @@ function ModelOption({ onMouseLeave={() => setHovered(false)} onClick={handleOptionClick} > -
+
@@ -202,8 +203,8 @@ function ModelOption({
{showMissingApiKeyMsg && ( - - API key required + + Missing API key )}