gui: improve missing api key text

This commit is contained in:
Test 2024-09-27 09:15:51 -07:00
parent 66805a9246
commit 3cc16994a8
2 changed files with 9 additions and 8 deletions

2
.vscode/launch.json vendored
View file

@ -12,7 +12,7 @@
"cwd": "${workspaceFolder}/extensions/vscode",
"args": [
// Pass a directory to manually test in
"${workspaceFolder}/gui",
"${workspaceFolder}/manual-testing-sandbox",
"${workspaceFolder}/manual-testing-sandbox/test.js",
"--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode"
],

View file

@ -192,7 +192,14 @@ function ModelOption({
<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" />
<span className="flex-grow">{option.title}</span>
<span className="flex-grow">
{option.title}
{showMissingApiKeyMsg && (
<span className="ml-2 italic text-[10px]">
(Missing API key)
</span>
)}
</span>
</div>
<div className="flex items-center ml-5">
<StyledCog6ToothIcon hovered={hovered} onClick={onClickGear} />
@ -201,12 +208,6 @@ function ModelOption({
)}
</div>
</div>
{showMissingApiKeyMsg && (
<span className="ml-6 text-xs italic text-[8px]">
Missing API key
</span>
)}
</div>
</StyledListboxOption>
);