webui: move preset settings to top

webui:bug fix
This commit is contained in:
firecoperana
2025-07-20 07:46:36 -05:00
parent 981259fb8b
commit f443040d49
4 changed files with 24 additions and 23 deletions

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@@ -228,6 +228,26 @@ const SETTING_SECTIONS = (
localConfig: typeof CONFIG_DEFAULT,
setLocalConfig: (config: typeof CONFIG_DEFAULT) => void
): SettingSection[] => [
{
title: (
<>
<BookmarkIcon className={ICON_CLASSNAME} />
Presets
</>
),
fields: [
{
type: SettingInputType.CUSTOM,
key: 'custom', // dummy key for presets
component: () => (
<PresetsManager
currentConfig={localConfig}
onLoadPreset={setLocalConfig}
/>
),
},
],
},
{
title: (
<>
@@ -489,26 +509,7 @@ const SETTING_SECTIONS = (
},
],
},
{
title: (
<>
<BookmarkIcon className={ICON_CLASSNAME} />
Presets
</>
),
fields: [
{
type: SettingInputType.CUSTOM,
key: 'custom', // dummy key for presets
component: () => (
<PresetsManager
currentConfig={localConfig}
onLoadPreset={setLocalConfig}
/>
),
},
],
},
];
export default function SettingDialog({

View File

@@ -48,7 +48,7 @@ html {
.chat-bubble-base-300 {
--tw-bg-opacity: 1;
--tw-text-opacity: 1;
@apply bg-base-300 text-base-content;
@apply break-words bg-base-300 text-base-content;
}
/* Highlight.js */