update styling
This commit is contained in:
parent
f8bc498576
commit
22409611d2
6 changed files with 28 additions and 21 deletions
22
docs/static/schemas/config.json
vendored
22
docs/static/schemas/config.json
vendored
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -2137,7 +2137,7 @@
|
|||
"if": {
|
||||
"properties": {
|
||||
"provider": {
|
||||
"enum": ["cohere", "voyage", "gemini", "nvidia"]
|
||||
"enum": ["cohere", "voyage", "nvidia", "gemini"]
|
||||
}
|
||||
},
|
||||
"required": ["provider"]
|
||||
|
|
|
|||
|
|
@ -2329,7 +2329,9 @@
|
|||
"cohere",
|
||||
"free-trial",
|
||||
"gemini",
|
||||
"voyage"
|
||||
"voyage",
|
||||
"nvidia",
|
||||
"bedrock"
|
||||
]
|
||||
},
|
||||
"model": {
|
||||
|
|
@ -2375,8 +2377,8 @@
|
|||
"enum": [
|
||||
"cohere",
|
||||
"voyage",
|
||||
"gemini",
|
||||
"nvidia"
|
||||
"nvidia",
|
||||
"gemini"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
|
|||
4
extensions/vscode/package-lock.json
generated
4
extensions/vscode/package-lock.json
generated
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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 (
|
||||
<InputBoxDiv
|
||||
disabled={!hasDefaultModel}
|
||||
onKeyDown={(e) => {
|
||||
if (e.key === "Alt") {
|
||||
setOptionKeyHeld(true);
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
>
|
||||
<div className="flex flex-col w-full gap-1">
|
||||
<div className="flex flex-col w-full gap-0.5">
|
||||
<div className="flex items-center justify-between w-full">
|
||||
<div className="flex items-center flex-grow">
|
||||
<CubeIcon className="w-4 h-4 mr-2 flex-shrink-0" />
|
||||
|
|
@ -202,8 +203,8 @@ function ModelOption({
|
|||
</div>
|
||||
|
||||
{showMissingApiKeyMsg && (
|
||||
<span className="ml-6 text-xs italic text-[10px]">
|
||||
API key required
|
||||
<span className="ml-6 text-xs italic text-[8px]">
|
||||
Missing API key
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue