mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-10 20:48:54 +01:00
Merge branch 'main' into feat/model-spec-group-icons
This commit is contained in:
commit
d5e1a7dbff
3 changed files with 10 additions and 2 deletions
|
|
@ -41,9 +41,11 @@ const toggleSwitchConfigs = [
|
|||
export const ThemeSelector = ({
|
||||
theme,
|
||||
onChange,
|
||||
portal = true,
|
||||
}: {
|
||||
theme: string;
|
||||
onChange: (value: string) => void;
|
||||
portal?: boolean;
|
||||
}) => {
|
||||
const localize = useLocalize();
|
||||
|
||||
|
|
@ -67,6 +69,7 @@ export const ThemeSelector = ({
|
|||
testId="theme-selector"
|
||||
className="z-50"
|
||||
aria-labelledby={labelId}
|
||||
portal={portal}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -227,9 +227,13 @@ function ShareHeader({
|
|||
<OGDialogTitle>{settingsLabel}</OGDialogTitle>
|
||||
</OGDialogHeader>
|
||||
<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" />
|
||||
<LangSelector langcode={langcode} onChange={onLangChange} portal={false} />
|
||||
<div className="relative focus-within:z-[100]">
|
||||
<LangSelector langcode={langcode} onChange={onLangChange} portal={false} />
|
||||
</div>
|
||||
</div>
|
||||
</OGDialogContent>
|
||||
</OGDialog>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue