Merge branch 'main' into feat/model-spec-group-icons

This commit is contained in:
Odrec 2025-12-03 22:14:48 +01:00 committed by GitHub
commit d5e1a7dbff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 2 deletions

View file

@ -41,9 +41,11 @@ const toggleSwitchConfigs = [
export const ThemeSelector = ({ export const ThemeSelector = ({
theme, theme,
onChange, onChange,
portal = true,
}: { }: {
theme: string; theme: string;
onChange: (value: string) => void; onChange: (value: string) => void;
portal?: boolean;
}) => { }) => {
const localize = useLocalize(); const localize = useLocalize();
@ -67,6 +69,7 @@ export const ThemeSelector = ({
testId="theme-selector" testId="theme-selector"
className="z-50" className="z-50"
aria-labelledby={labelId} aria-labelledby={labelId}
portal={portal}
/> />
</div> </div>
); );

View file

@ -227,9 +227,13 @@ function ShareHeader({
<OGDialogTitle>{settingsLabel}</OGDialogTitle> <OGDialogTitle>{settingsLabel}</OGDialogTitle>
</OGDialogHeader> </OGDialogHeader>
<div className="flex flex-col gap-4 pt-2 text-sm"> <div className="flex flex-col gap-4 pt-2 text-sm">
<ThemeSelector theme={theme} onChange={onThemeChange} /> <div className="relative focus-within:z-[100]">
<ThemeSelector theme={theme} onChange={onThemeChange} portal={false} />
</div>
<div className="bg-border-medium/60 h-px w-full" /> <div className="bg-border-medium/60 h-px w-full" />
<LangSelector langcode={langcode} onChange={onLangChange} portal={false} /> <div className="relative focus-within:z-[100]">
<LangSelector langcode={langcode} onChange={onLangChange} portal={false} />
</div>
</div> </div>
</OGDialogContent> </OGDialogContent>
</OGDialog> </OGDialog>

View file

@ -1133,6 +1133,7 @@ export const supportsBalanceCheck = {
[EModelEndpoint.azureAssistants]: true, [EModelEndpoint.azureAssistants]: true,
[EModelEndpoint.azureOpenAI]: true, [EModelEndpoint.azureOpenAI]: true,
[EModelEndpoint.bedrock]: true, [EModelEndpoint.bedrock]: true,
[EModelEndpoint.google]: true,
}; };
export const visionModels = [ export const visionModels = [