)}
{selectedProvider === "openrouter" && (
-
void
+ isPopup?: boolean
}) => {
const isGemini = Object.keys(geminiModels).includes(selectedModelId)
@@ -987,6 +1008,7 @@ export const ModelInfoView = ({
markdown={modelInfo.description}
isExpanded={isDescriptionExpanded}
setIsExpanded={setIsDescriptionExpanded}
+ isPopup={isPopup}
/>
),
void
+ isPopup?: boolean
}) => {
const [reactContent, setMarkdown] = useRemark()
// const [isExpanded, setIsExpanded] = useState(false)
@@ -434,7 +439,7 @@ export const ModelDescriptionMarkdown = memo(
fontSize: "inherit",
paddingRight: 0,
paddingLeft: 3,
- backgroundColor: "var(--vscode-sideBar-background)",
+ backgroundColor: isPopup ? CODE_BLOCK_BG_COLOR : "var(--vscode-sideBar-background)",
}}
onClick={() => setIsExpanded(true)}>
See more
diff --git a/webview-ui/src/components/settings/SettingsView.tsx b/webview-ui/src/components/settings/SettingsView.tsx
index 921f311c56..91e9d136c8 100644
--- a/webview-ui/src/components/settings/SettingsView.tsx
+++ b/webview-ui/src/components/settings/SettingsView.tsx
@@ -8,11 +8,10 @@ import ApiOptions from "./ApiOptions"
const IS_DEV = false // FIXME: use flags when packaging
type SettingsViewProps = {
- showAdvisorModelSettings: boolean
onDone: () => void
}
-const SettingsView = ({ showAdvisorModelSettings, onDone }: SettingsViewProps) => {
+const SettingsView = ({ onDone }: SettingsViewProps) => {
const { apiConfiguration, version, customInstructions, setCustomInstructions, openRouterModels } = useExtensionState()
const [apiErrorMessage, setApiErrorMessage] = useState