fix: body scrolls to top after opening a modal

This commit is contained in:
jialin
2025-01-09 11:27:44 +08:00
parent fb4666195c
commit a374d4d40f
7 changed files with 102 additions and 60 deletions
@@ -67,7 +67,7 @@ const advancedFieldsDefaultValus = {
guidance: 3.5,
sampling_steps: 10,
negative_prompt: null,
schedule_method: 'default',
schedule_method: 'discrete',
preview: null
};
@@ -71,7 +71,7 @@ const advancedFieldsDefaultValus = {
sampling_steps: 10,
negative_prompt: null,
preview: null,
schedule_method: 'default'
schedule_method: 'discrete'
};
const openaiCompatibleFieldsDefaultValus = {
+2 -3
View File
@@ -15,8 +15,8 @@ export const imageSizeOptions: {
height: 0
},
{ label: '512x512', value: '512x512', width: 512, height: 512 },
{ label: '768x1024', value: '768x1024', width: 768, height: 1024 },
{ label: '1024x768', value: '1024x768', width: 1024, height: 768 },
{ label: '768x1024(3:4)', value: '768x1024', width: 768, height: 1024 },
{ label: '1024x768(4:3)', value: '1024x768', width: 1024, height: 768 },
{ label: '1024x1024', value: '1024x1024', width: 1024, height: 1024 }
];
@@ -278,7 +278,6 @@ export const ImageAdvancedParamsConfig: ParamsSchema[] = [
type: 'Select',
name: 'schedule_method',
options: [
{ label: 'default', value: 'default' },
{ label: 'discrete', value: 'discrete' },
{ label: 'karras', value: 'karras' },
{ label: 'exponential', value: 'exponential' },