mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-26 18:25:29 +01:00
Merge pull request #777 from patriceac/preview-content-container
Group image containers (DOM tweak)
This commit is contained in:
commit
5741af2aba
@ -281,8 +281,10 @@
|
||||
and selecting the desired modifiers.<br/><br/>
|
||||
Click "Image Settings" for additional settings like seed, image size, number of images to generate etc.<br/><br/>Enjoy! :)
|
||||
</div>
|
||||
<div id="preview-tools">
|
||||
<button id="clear-all-previews" class="secondaryButton"><i class="fa-solid fa-trash-can"></i> Clear All</button>
|
||||
<div id="preview-content">
|
||||
<div id="preview-tools">
|
||||
<button id="clear-all-previews" class="secondaryButton"><i class="fa-solid fa-trash-can"></i> Clear All</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -67,6 +67,7 @@ let maskSetting = document.querySelector('#enable_mask')
|
||||
const processOrder = document.querySelector('#process_order_toggle')
|
||||
|
||||
let imagePreview = document.querySelector("#preview")
|
||||
let imagePreviewContent = document.querySelector("#preview-content")
|
||||
imagePreview.addEventListener('drop', function(ev) {
|
||||
const data = ev.dataTransfer?.getData("text/plain");
|
||||
if (!data) {
|
||||
@ -916,7 +917,7 @@ function createTask(task) {
|
||||
})
|
||||
|
||||
task.isProcessing = true
|
||||
taskEntry = imagePreview.insertBefore(taskEntry, previewTools.nextSibling)
|
||||
taskEntry = imagePreviewContent.insertBefore(taskEntry, previewTools.nextSibling)
|
||||
htmlTaskMap.set(taskEntry, task)
|
||||
|
||||
task.previewPrompt.innerText = task.reqBody.prompt
|
||||
|
Loading…
Reference in New Issue
Block a user