diff --git a/ui/frontend/build_src/src/components/creationPanel/creationPanel.css b/ui/frontend/build_src/src/components/creationPanel/creationPanel.css index 418f99df..7f4a1c04 100644 --- a/ui/frontend/build_src/src/components/creationPanel/creationPanel.css +++ b/ui/frontend/build_src/src/components/creationPanel/creationPanel.css @@ -1,3 +1,6 @@ +.create-layout { + padding: 10px; +} .panel-box-toggle-btn { display: block; width: 100%; diff --git a/ui/frontend/build_src/src/components/displayPanel/displayPanel.css b/ui/frontend/build_src/src/components/displayPanel/displayPanel.css index e69de29b..095d9b0c 100644 --- a/ui/frontend/build_src/src/components/displayPanel/displayPanel.css +++ b/ui/frontend/build_src/src/components/displayPanel/displayPanel.css @@ -0,0 +1,21 @@ +.display-panel { + padding:10px; +} + +#display-container { + display: flex; + flex-direction: row; + height: 100%; + width: 100%; + overflow: hidden; +} + +#previous-images { + margin-left: 30px; + display: flex; + flex:auto; +} + +.previous-image { + margin: 0 10px; +} \ No newline at end of file diff --git a/ui/frontend/build_src/src/components/displayPanel/generatedImage/generatedImage.css b/ui/frontend/build_src/src/components/displayPanel/generatedImage/generatedImage.css index e69de29b..43bb93b4 100644 --- a/ui/frontend/build_src/src/components/displayPanel/generatedImage/generatedImage.css +++ b/ui/frontend/build_src/src/components/displayPanel/generatedImage/generatedImage.css @@ -0,0 +1,20 @@ +.generated-image { + position: relative; +} + +.image-contain { + position: relative; + +} + +#save-button { + position: absolute; + top: 10px; + left: 10px; +} + +#use-button { + position: absolute; + top: 10px; + right: 10px; +} 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 72099309..d0df2414 100644 --- a/ui/frontend/build_src/src/components/displayPanel/generatedImage/index.tsx +++ b/ui/frontend/build_src/src/components/displayPanel/generatedImage/index.tsx @@ -2,14 +2,18 @@ import React, { useCallback } from "react"; import { ImageRequest, useImageCreate } from "../../../store/imageCreateStore"; +import './generatedImage.css'; + type GeneretaedImageProps = { imageData: string; metadata: ImageRequest; + className?: string; }; export default function GeneratedImage({ imageData, metadata, + className, }: GeneretaedImageProps) { const setRequestOption = useImageCreate((state) => state.setRequestOptions); @@ -59,32 +63,21 @@ export default function GeneratedImage({ const _handleUseAsInput = () => { - debugger; setRequestOption("init_image", imageData); - // initImageSelector.value = null - // initImagePreview.src = imgBody - // imgUseBtn.addEventListener('click', function() { - // initImageSelector.value = null - // initImagePreview.src = imgBody - - // initImagePreviewContainer.style.display = 'block' - // promptStrengthContainer.style.display = 'block' - - // // maskSetting.style.display = 'block' - - // randomSeedField.checked = false - // seedField.value = seed - // seedField.disabled = false - // }) }; + // className={[statusClass, className].join(" ")} + return ( -
Your image
- - - + +{metadata.prompt}
+