Fix a bug where batches would overwrite the previous images inside a task

This commit is contained in:
cmdr2 2022-09-29 13:43:25 +05:30
parent 5c2ec70eb4
commit 5db64526cc
3 changed files with 9 additions and 3 deletions

View File

@ -4,7 +4,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="/media/favicon-16x16.png" sizes="16x16">
<link rel="icon" type="image/png" href="/media/favicon-32x32.png" sizes="32x32">
<link rel="stylesheet" href="/media/main.css?v=20">
<link rel="stylesheet" href="/media/main.css?v=21">
<link rel="stylesheet" href="/media/modifier-thumbnails.css?v=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css">
<link rel="stylesheet" href="/media/drawingboard.min.css">
@ -213,7 +213,7 @@
</div>
</body>
<script src="media/main.js?v=20"></script>
<script src="media/main.js?v=21"></script>
<script>
async function init() {
await loadModifiers()

View File

@ -407,4 +407,7 @@ img {
font-size: 10pt;
color: #aaa;
margin-bottom: 5pt;
}
.img-batch {
display: inline;
}

View File

@ -361,7 +361,10 @@ async function doMakeImage(task) {
const reqBody = task.reqBody
const batchCount = task.batchCount
const outputContainer = task.outputContainer
const outputContainer = document.createElement('div')
outputContainer.className = 'img-batch'
task.outputContainer.appendChild(outputContainer)
const outputMsg = task['outputMsg']
const previewPrompt = task['previewPrompt']