Skip to content

Commit 608ff76

Browse files
author
firecoperana
committed
webui: move preset settings to top
webui:bug fix
1 parent 82d9bc0 commit 608ff76

File tree

4 files changed

+24
-23
lines changed

4 files changed

+24
-23
lines changed
5 Bytes
Binary file not shown.

examples/server/webui/dist/index.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

examples/server/webui/src/components/SettingDialog.tsx

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,26 @@ const SETTING_SECTIONS = (
228228
localConfig: typeof CONFIG_DEFAULT,
229229
setLocalConfig: (config: typeof CONFIG_DEFAULT) => void
230230
): SettingSection[] => [
231+
{
232+
title: (
233+
<>
234+
<BookmarkIcon className={ICON_CLASSNAME} />
235+
Presets
236+
</>
237+
),
238+
fields: [
239+
{
240+
type: SettingInputType.CUSTOM,
241+
key: 'custom', // dummy key for presets
242+
component: () => (
243+
<PresetsManager
244+
currentConfig={localConfig}
245+
onLoadPreset={setLocalConfig}
246+
/>
247+
),
248+
},
249+
],
250+
},
231251
{
232252
title: (
233253
<>
@@ -489,26 +509,7 @@ const SETTING_SECTIONS = (
489509
},
490510
],
491511
},
492-
{
493-
title: (
494-
<>
495-
<BookmarkIcon className={ICON_CLASSNAME} />
496-
Presets
497-
</>
498-
),
499-
fields: [
500-
{
501-
type: SettingInputType.CUSTOM,
502-
key: 'custom', // dummy key for presets
503-
component: () => (
504-
<PresetsManager
505-
currentConfig={localConfig}
506-
onLoadPreset={setLocalConfig}
507-
/>
508-
),
509-
},
510-
],
511-
},
512+
512513
];
513514

514515
export default function SettingDialog({

examples/server/webui/src/index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ html {
4848
.chat-bubble-base-300 {
4949
--tw-bg-opacity: 1;
5050
--tw-text-opacity: 1;
51-
@apply bg-base-300 text-base-content;
51+
@apply break-words bg-base-300 text-base-content;
5252
}
5353

5454
/* Highlight.js */

0 commit comments

Comments
 (0)