diff --git a/ui/frontend/build_src/src/components/creationPanel/advancedSettings/advancedSettings.css b/ui/frontend/build_src/src/components/creationPanel/advancedSettings/advancedSettings.css index 90fbac25..09a63e5d 100644 --- a/ui/frontend/build_src/src/components/creationPanel/advancedSettings/advancedSettings.css +++ b/ui/frontend/build_src/src/components/creationPanel/advancedSettings/advancedSettings.css @@ -1,3 +1,7 @@ input[size="4"] { width: 4.5rem; } + +#File-Body>#File-For { + display: none; +} \ No newline at end of file diff --git a/ui/frontend/build_src/src/components/creationPanel/creationPanel.css b/ui/frontend/build_src/src/components/creationPanel/creationPanel.css index 69347440..418f99df 100644 --- a/ui/frontend/build_src/src/components/creationPanel/creationPanel.css +++ b/ui/frontend/build_src/src/components/creationPanel/creationPanel.css @@ -46,3 +46,8 @@ li { .modifierTag p { margin: 0; } + +input[type="file"] { + /* Dont show the file name */ + color:transparent; +} \ No newline at end of file diff --git a/ui/frontend/build_src/src/components/creationPanel/index.tsx b/ui/frontend/build_src/src/components/creationPanel/index.tsx index 69ad3629..2d2f26ad 100644 --- a/ui/frontend/build_src/src/components/creationPanel/index.tsx +++ b/ui/frontend/build_src/src/components/creationPanel/index.tsx @@ -32,6 +32,7 @@ export default function CreationPanel() { const reader = new FileReader(); reader.onload = (e) => { if (e.target) { + debugger; setRequestOption("init_image", e.target.result); } }; @@ -39,6 +40,10 @@ export default function CreationPanel() { } }; + const _handleClearImage = () => { + setRequestOption("init_image", undefined); + }; + return (
@@ -47,11 +52,6 @@ export default function CreationPanel() {
- {/*
-

Seed Image

- -
*/} -
diff --git a/ui/frontend/build_src/src/components/displayPanel/generatedImage/index.tsx b/ui/frontend/build_src/src/components/displayPanel/generatedImage/index.tsx index 94131f87..72099309 100644 --- a/ui/frontend/build_src/src/components/displayPanel/generatedImage/index.tsx +++ b/ui/frontend/build_src/src/components/displayPanel/generatedImage/index.tsx @@ -58,8 +58,8 @@ export default function GeneratedImage({ }; const _handleUseAsInput = () => { - console.log(" TODO : use as input"); + debugger; setRequestOption("init_image", imageData); // initImageSelector.value = null // initImagePreview.src = imgBody diff --git a/ui/frontend/build_src/src/store/imageCreateStore.ts b/ui/frontend/build_src/src/store/imageCreateStore.ts index d6e99cdb..3f24bab4 100644 --- a/ui/frontend/build_src/src/store/imageCreateStore.ts +++ b/ui/frontend/build_src/src/store/imageCreateStore.ts @@ -202,7 +202,7 @@ export const useImageCreate = create( isCheckUseFaceCorrection: true, isUseRandomSeed: true, isUseAutoSave: false, - isSoundEnabled: true, + isSoundEnabled: false, }, toggleAdvancedSettingsIsOpen: () => {