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 (
Seed Image
- -